![]() |
5G-LENA nr-v3.3-159-ga6832aa7
The 5G/NR module for the ns-3 simulator
|
A helper to make it easier to instantiate an ns3::TrafficGenerator types of applications on a set of nodes. More...
#include "traffic-generator-helper.h"
Public Member Functions | |
TrafficGeneratorHelper (std::string protocol, Address address, TypeId ftpTypeId) | |
ApplicationContainer | Install (NodeContainer c) const |
ApplicationContainer | Install (Ptr< Node > node) const |
ApplicationContainer | Install (std::string nodeName) const |
void | SetAttribute (std::string name, const AttributeValue &value) |
A helper to make it easier to instantiate an ns3::TrafficGenerator types of applications on a set of nodes.
Definition at line 27 of file traffic-generator-helper.h.
ns3::TrafficGeneratorHelper::TrafficGeneratorHelper | ( | std::string | protocol, |
Address | address, | ||
TypeId | ftpTypeId | ||
) |
Create an TrafficGeneratorHelper to make it easier to work with TrafficGenerator types
protocol | the name of the protocol to use to send traffic by the applications. This string identifies the socket factory type used to create sockets for the applications. A typical value would be ns3::UdpSocketFactory. |
address | the address of the remote node to send traffic to. |
ftpTypeId | a TypeId of the FTP application to be used by this helper |
Definition at line 16 of file traffic-generator-helper.cc.
ApplicationContainer ns3::TrafficGeneratorHelper::Install | ( | NodeContainer | c | ) | const |
Install an ns3::TrafficGenerator on each node of the input container configured with all the attributes set with SetAttribute.
c | NodeContainer of the set of nodes on which an TrafficGenerator will be installed. |
Definition at line 45 of file traffic-generator-helper.cc.
ApplicationContainer ns3::TrafficGeneratorHelper::Install | ( | Ptr< Node > | node | ) | const |
Install an ns3::TrafficGenerator on the node configured with all the attributes set with SetAttribute.
node | The node on which an TrafficGenerator will be installed. |
Definition at line 32 of file traffic-generator-helper.cc.
ApplicationContainer ns3::TrafficGeneratorHelper::Install | ( | std::string | nodeName | ) | const |
Install an ns3::TrafficGenerator on the node configured with all the attributes set with SetAttribute.
nodeName | The node on which an TrafficGenerator will be installed. |
Definition at line 38 of file traffic-generator-helper.cc.
void ns3::TrafficGeneratorHelper::SetAttribute | ( | std::string | name, |
const AttributeValue & | value | ||
) |
Helper function used to set the underlying application attributes, not the socket attributes.
name | the name of the application attribute to set |
value | the value of the application attribute to set |
Definition at line 26 of file traffic-generator-helper.cc.