17#include "ns3/nstime.h"
18#include "ns3/simulator.h"
34 .SetGroupName(
"Network")
35 .AddAttribute(
"StartTime",
36 "Time at which the application will start",
40 .AddAttribute(
"StopTime",
41 "Time at which the application will stop",
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.
EventId m_stopEvent
The event that will fire at m_stopTime to end the application.
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.
void Cancel()
This method is syntactic sugar for the ns3::Simulator::Cancel method.
A base class which provides memory management and object aggregation.
virtual void DoInitialize()
Initialize() implementation.
virtual void DoDispose()
Destructor implementation.
Smart pointer class similar to boost::intrusive_ptr.
static EventId Schedule(const Time &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
Simulation virtual time values and global simulation resolution.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#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 AttributeAccessor > MakeTimeAccessor(T1 a1)
Ptr< const AttributeChecker > MakeTimeChecker()
Helper to make an unbounded Time checker.