27 #include "ns3/nstime.h"
28 #include "ns3/simulator.h"
43 .SetGroupName(
"Network")
44 .AddAttribute (
"StartTime",
"Time at which the application will start",
48 .AddAttribute (
"StopTime",
"Time at which the application will stop",
EventId m_startEvent
The event that will fire at m_startTime to start the application.
void SetNode(Ptr< Node > node)
virtual void StartApplication(void)
Application specific startup code.
Time m_startTime
The simulation time that the application will start.
Time m_stopTime
The simulation time that the application will end.
virtual void DoInitialize(void)
Initialize() implementation.
void SetStopTime(Time stop)
Specify application stop time.
static TypeId GetTypeId(void)
Get the type ID.
void SetStartTime(Time start)
Specify application start time.
virtual void DoDispose(void)
Destructor implementation.
EventId m_stopEvent
The event that will fire at m_stopTime to end the application.
Ptr< Node > GetNode() const
virtual void StopApplication(void)
Application specific shutdown code.
Ptr< Node > m_node
The node that this application is installed on.
void Cancel(void)
This method is syntactic sugar for the ns3::Simulator::Cancel method.
A base class which provides memory management and object aggregation.
virtual void DoDispose(void)
Destructor implementation.
virtual void DoInitialize(void)
Initialize() implementation.
static EventId Schedule(Time const &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
Simulation virtual time values and global simulation resolution.
AttributeValue implementation for Time.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeChecker > MakeTimeChecker(const Time min, const Time max)
Helper to make a Time checker with bounded range.