ns3::CsmaStarHelper Class Reference
A helper to make it easier to create a star topology with Csma links.
More...
#include <csma-star-helper.h>
List of all members.
Detailed Description
A helper to make it easier to create a star topology with Csma links.
Constructor & Destructor Documentation
ns3::CsmaStarHelper::CsmaStarHelper |
( |
uint32_t |
numSpokes, |
|
|
CsmaHelper |
csmaHelper | |
|
) |
| | |
Create a CsmaStarHelper in order to easily create star topologies using Csma links
- Parameters:
-
| numSpokes | the number of links attached to the hub node, creating a total of numSpokes + 1 nodes |
| csmaHelper | the link helper for Csma links, used to link nodes together |
Member Function Documentation
- Parameters:
-
| address | an Ipv4AddressHelper which is used to install Ipv4 addresses on all the node interfaces in the star |
Ptr<Node> ns3::CsmaStarHelper::GetHub |
( |
|
) |
const |
- Returns:
- a node pointer to the hub node in the star, i.e., the center node
- Returns:
- the net-device container which contains all of the devices on the hub node
Ipv4Address ns3::CsmaStarHelper::GetHubIpv4Address |
( |
uint32_t |
i |
) |
const |
- Parameters:
-
| i | index into the hub interfaces |
- Returns:
- Ipv4Address according to indexed hub interface
- Returns:
- the net-device container which contains all of the spoke node devices
Ipv4Address ns3::CsmaStarHelper::GetSpokeIpv4Address |
( |
uint32_t |
i |
) |
const |
- Parameters:
-
| i | index into the spoke interfaces |
- Returns:
- Ipv4Address according to indexed spoke interface
Ptr<Node> ns3::CsmaStarHelper::GetSpokeNode |
( |
uint32_t |
i |
) |
const |
- Parameters:
-
| i | an index into the spokes of the star |
- Returns:
- a node pointer to the node at the indexed spoke
uint32_t ns3::CsmaStarHelper::SpokeCount |
( |
|
) |
const |
- Returns:
- the total number of spokes in the star
The documentation for this class was generated from the following file:
- src/helper/csma-star-helper.h