19 #ifndef POINT_TO_POINT_GRID_HELPER_H
20 #define POINT_TO_POINT_GRID_HELPER_H
142 void BoundingBox (
double ulx,
double uly,
double lrx,
double lry);
std::vector< NetDeviceContainer > m_colDevices
void AssignIpv4Addresses(Ipv4AddressHelper rowIp, Ipv4AddressHelper colIp)
Assigns Ipv4 addresses to all the row and column interfaces.
void AssignIpv6Addresses(Ipv6Address network, Ipv6Prefix prefix)
Assigns Ipv6 addresses to all the row and column interfaces.
aggregate IP/TCP/UDP functionality to existing Nodes.
A helper to make it easier to create a grid topology with p2p links.
Ipv6Address GetIpv6Address(uint32_t row, uint32_t col)
This returns an Ipv6 address at the node specified by the (row, col) address.
Build a set of PointToPointNetDevice objects.
Ptr< Node > GetNode(uint32_t row, uint32_t col)
std::vector< NodeContainer > m_nodes
PointToPointGridHelper(uint32_t nRows, uint32_t nCols, PointToPointHelper pointToPoint)
Create a PointToPointGridHelper in order to easily create grid topologies using p2p links...
std::vector< Ipv6InterfaceContainer > m_rowInterfaces6
std::vector< Ipv4InterfaceContainer > m_rowInterfaces
std::vector< NetDeviceContainer > m_rowDevices
Ipv4Address GetIpv4Address(uint32_t row, uint32_t col)
This returns an Ipv4 address at the node specified by the (row, col) address.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::vector< Ipv6InterfaceContainer > m_colInterfaces6
~PointToPointGridHelper()
Describes an IPv6 address.
Ipv4 addresses are stored in host order in this class.
void InstallStack(InternetStackHelper stack)
Describes an IPv6 prefix.
A helper class to make life easier while doing simple IPv4 address assignment in scripts.
std::vector< Ipv4InterfaceContainer > m_colInterfaces
void BoundingBox(double ulx, double uly, double lrx, double lry)
Sets up the node canvas locations for every node in the grid.