11#include "ns3/data-rate.h"
13#include "ns3/string.h"
55 auto node = Names::Find<Node>(
nodeName);
64 for (
auto i =
c.Begin();
i !=
c.End(); ++
i)
76 node->AddApplication(app);
85 for (
auto i =
c.Begin();
i !=
c.End(); ++
i)
88 for (
uint32_t j = 0;
j < node->GetNApplications(); ++
j)
90 if (
auto app = node->GetApplication(
j);
104 for (
auto i =
c.Begin();
i !=
c.End(); ++
i)
107 for (
uint32_t j = 0;
j < node->GetNApplications(); ++
j)
holds a vector of ns3::Application pointers.
void Add(ApplicationContainer other)
Append the contents of another ApplicationContainer to the end of this container.
ApplicationContainer Install(NodeContainer c)
Install an application on each node of the input container configured with all the attributes set wit...
ObjectFactory m_factory
Object factory.
static int64_t AssignStreamsToAllApps(NodeContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by all the applications.
ApplicationHelper(TypeId typeId)
Create an application of a given type ID.
int64_t AssignStreams(NodeContainer c, int64_t stream)
Assigns a unique (monotonically increasing) stream number to all applications that match the configur...
void SetAttribute(const std::string &name, const AttributeValue &value)
Helper function used to set the underlying application attributes.
void SetTypeId(TypeId typeId)
Allow the helper to be repurposed for another application type.
virtual Ptr< Application > DoInstall(Ptr< Node > node)
Install an application on the node configured with all the attributes set with SetAttribute.
The base class for all ns3 applications.
Hold a value for an Attribute.
keep track of a set of node pointers.
Ptr< Object > Create() const
Create an Object instance of the configured TypeId.
void Set(const std::string &name, const AttributeValue &value, Args &&... args)
Set an attribute to be set during construction.
TypeId GetTypeId() const
Get the TypeId which will be created by this ObjectFactory.
void SetTypeId(TypeId tid)
Set the TypeId of the Objects to be created by this factory.
bool IsTypeIdSet() const
Check if the ObjectFactory has been configured with a TypeId.
Smart pointer class similar to boost::intrusive_ptr.
a unique identifier for an interface.
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static unsigned int value(char c)