21 #include "ns3/names.h" 102 NS_LOG_DEBUG (
"Start application at time " <<
start.GetSeconds () + value <<
"s");
holds a vector of ns3::Application pointers.
void SetStopTime(Time stop)
Specify application stop time.
Simulation virtual time values and global simulation resolution.
std::vector< Ptr< Application > > m_applications
Applications smart pointers.
void Add(ApplicationContainer other)
Append the contents of another ApplicationContainer to the end of this container. ...
Iterator End(void) const
Get an iterator which indicates past-the-last Application in the container.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Iterator Begin(void) const
Get an iterator which refers to the first Application in the container.
void StartWithJitter(Time start, Ptr< RandomVariableStream > rv)
Start all of the Applications in this container at the start time given as a parameter, plus some jitter.
virtual double GetValue(void)=0
Get the next random value as a double drawn from the distribution.
std::vector< Ptr< Application > >::const_iterator Iterator
Application container iterator.
ApplicationContainer()
Create an empty ApplicationContainer.
void Start(Time start)
Arrange for all of the Applications in this container to Start() at the Time given as a parameter...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void Stop(Time stop)
Arrange for all of the Applications in this container to Stop() at the Time given as a parameter...
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
Time Seconds(double value)
Construct a Time in the indicated unit.
void SetStartTime(Time start)
Specify application start time.
Ptr< Application > Get(uint32_t i) const
Get the Ptr<Application> stored in this container at a given index.
uint32_t GetN(void) const
Get the number of Ptr<Application> stored in this container.