27 #include "ns3/nstime.h"
28 #include "ns3/simulator.h"
44 .AddAttribute (
"StartTime",
"Time at which the application will start",
48 .AddAttribute (
"StopTime",
"Time at which the application will stop",
void SetStopTime(Time stop)
Specify application stop time.
keep track of time values and allow control of global simulation resolution
#define NS_LOG_FUNCTION(parameters)
Time TimeStep(uint64_t ts)
static TypeId GetTypeId(void)
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
NS_LOG_COMPONENT_DEFINE("Application")
static EventId Schedule(Time const &time, MEM mem_ptr, OBJ obj)
Schedule an event to expire at the relative time "time" is reached.
virtual void DoInitialize(void)
This method is called only once by Object::Initialize.
hold objects of type ns3::Time
virtual void StartApplication(void)
Application specific startup code.
Ptr< Node > GetNode() const
Time m_stopTime
The simulation time that the appliacation will start.
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
EventId m_startEvent
The simulation time that the appliacation will end.
void SetNode(Ptr< Node > node)
virtual void StopApplication(void)
Application specific shutdown code.
void Cancel(void)
This method is syntactic sugar for the ns3::Simulator::cancel method.
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range.
EventId m_stopEvent
The event that will fire at m_startTime to start the application.
a base class which provides memory management and object aggregation
Time m_startTime
The node that this application is installed on.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
void SetStartTime(Time start)
Specify application start time.
virtual void DoInitialize(void)
This method is called only once by Object::Initialize.