14#include "ns3/event-id.h"
15#include "ns3/nstime.h"
16#include "ns3/object.h"
122 const std::string& newState);
a polymophic address class
The base class for all ns3 applications.
EventId m_startEvent
The event that will fire at m_startTime to start the application.
void DoInitialize() override
Initialize() implementation.
void SetNode(Ptr< Node > node)
void DoDispose() override
Destructor implementation.
Time m_startTime
The simulation time that the application will start.
Time m_stopTime
The simulation time that the application will end.
void SetStopTime(Time stop)
Specify application stop time.
virtual void StopApplication()
Application specific shutdown code.
virtual void StartApplication()
Application specific startup code.
void SetStartTime(Time start)
Specify application start time.
void(* DelayAddressCallback)(const Time &delay, const Address &from)
Common callback signature for packet delay and address.
EventId m_stopEvent
The event that will fire at m_stopTime to end the application.
void(* StateTransitionCallback)(const std::string &oldState, const std::string &newState)
Common signature used by callbacks to application's state transition trace source.
virtual int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this Application object.
static TypeId GetTypeId()
Get the type ID.
Ptr< Node > GetNode() const
Ptr< Node > m_node
The node that this application is installed on.
An identifier for simulation events.
A base class which provides memory management and object aggregation.
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
a unique identifier for an interface.
Every class exported by the ns3 library is enclosed in the ns3 namespace.