ns3::PointToPointHelper Class Reference
Build a set of PointToPointNetDevice objects.
More...
#include <point-to-point-helper.h>
List of all members.
Public Member Functions |
| PointToPointHelper () |
void | SetQueue (std::string type, std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue()) |
void | SetDeviceAttribute (std::string name, const AttributeValue &value) |
void | SetChannelAttribute (std::string name, const AttributeValue &value) |
NetDeviceContainer | Install (NodeContainer c) |
NetDeviceContainer | Install (Ptr< Node > a, Ptr< Node > b) |
NetDeviceContainer | Install (Ptr< Node > a, std::string bName) |
NetDeviceContainer | Install (std::string aName, Ptr< Node > b) |
NetDeviceContainer | Install (std::string aNode, std::string bNode) |
Detailed Description
Build a set of PointToPointNetDevice objects.
Normally we eschew multiple inheritance, however, the classes PcapUserHelperForDevice and AsciiTraceUserHelperForDevice are "mixins".
Constructor & Destructor Documentation
ns3::PointToPointHelper::PointToPointHelper |
( |
|
) |
|
Member Function Documentation
NetDeviceContainer ns3::PointToPointHelper::Install |
( |
std::string |
aNode, |
|
|
std::string |
bNode | |
|
) |
| | |
- Parameters:
-
| aNode | Name of first node |
| bNode | Name of second node |
Saves you from having to construct a temporary NodeContainer.
- Parameters:
-
| aName | Name of first node |
| b | second node |
Saves you from having to construct a temporary NodeContainer.
- Parameters:
-
| a | first node |
| bName | name of second node |
Saves you from having to construct a temporary NodeContainer.
- Parameters:
-
| a | first node |
| b | second node |
Saves you from having to construct a temporary NodeContainer. Also, if MPI is enabled, for distributed simulations, appropriate remote point-to-point channels are created.
void ns3::PointToPointHelper::SetChannelAttribute |
( |
std::string |
name, |
|
|
const AttributeValue & |
value | |
|
) |
| | |
void ns3::PointToPointHelper::SetDeviceAttribute |
( |
std::string |
name, |
|
|
const AttributeValue & |
value | |
|
) |
| | |
Each point to point net device must have a queue to pass packets through. This method allows one to set the type of the queue that is automatically created when the device is created and attached to a node.
- Parameters:
-
| type | the type of queue |
| n1 | the name of the attribute to set on the queue |
| v1 | the value of the attribute to set on the queue |
| n2 | the name of the attribute to set on the queue |
| v2 | the value of the attribute to set on the queue |
| n3 | the name of the attribute to set on the queue |
| v3 | the value of the attribute to set on the queue |
| n4 | the name of the attribute to set on the queue |
| v4 | the value of the attribute to set on the queue |
Set the type of queue to create and associated to each PointToPointNetDevice created through PointToPointHelper::Install.
The documentation for this class was generated from the following file:
- src/helper/point-to-point-helper.h