#include <application.h>
Public Member Functions | |
void | Start (const Time &startTime) |
Specify application start time. | |
void | Start (const RandomVariable &startVariable) |
Specify application start time. | |
void | Stop (const Time &stopTime) |
Specify application stop time. | |
void | Stop (const RandomVariable &stopVariable) |
Specify application stop time. | |
Ptr< Node > | GetNode () const |
void | SetNode (Ptr< Node > node) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::Application. | |
Protected Member Functions | |
virtual void | DoDispose (void) |
Private Member Functions | |
virtual void | StartApplication (void) |
Application specific startup code. | |
virtual void | StopApplication (void) |
Application specific shutdown code. |
virtual void ns3::Application::DoDispose | ( | void | ) | [protected, virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
Reimplemented from ns3::Object.
Reimplemented in ns3::OnOffApplication, ns3::PacketSink, ns3::UdpEchoClient, ns3::UdpEchoServer, and ns3::rapidnet::RapidNetApplicationBase.
static TypeId ns3::Application::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::Application.
This object is accessible through the following paths with Config::Set and Config::Connect:
Reimplemented from ns3::Object.
Reimplemented in ns3::OnOffApplication, ns3::PacketSink, ns3::UdpEchoClient, ns3::UdpEchoServer, and ns3::rapidnet::RapidNetApplicationBase.
node | the node to which this Application object is attached. |
void ns3::Application::Start | ( | const RandomVariable & | startVariable | ) |
Specify application start time.
startVariable | the random variable to use to pick the real start time as a relative time, in units of seconds, relative to the current simulation time. |
void ns3::Application::Start | ( | const Time & | startTime | ) |
Specify application start time.
startTime | Start time for this application, relative to the current simulation time. |
virtual void ns3::Application::StartApplication | ( | void | ) | [private, virtual] |
Application specific startup code.
The StartApplication method is called at the start time specifed by Start This method should be overridden by all or most application subclasses.
Reimplemented in ns3::OnOffApplication, ns3::PacketSink, ns3::UdpEchoClient, ns3::UdpEchoServer, and ns3::rapidnet::RapidNetApplicationBase.
void ns3::Application::Stop | ( | const RandomVariable & | stopVariable | ) |
Specify application stop time.
stopVariable | the random variable to use to pick the real stop time, in units of seconds, relative to the current simulation time. |
void ns3::Application::Stop | ( | const Time & | stopTime | ) |
Specify application stop time.
stopTime | Stop time for this application, relative to the current simulation time. |
virtual void ns3::Application::StopApplication | ( | void | ) | [private, virtual] |
Application specific shutdown code.
The StopApplication method is called at the stop time specifed by Stop This method should be overridden by all or most application subclasses.
Reimplemented in ns3::OnOffApplication, ns3::PacketSink, ns3::UdpEchoClient, ns3::UdpEchoServer, and ns3::rapidnet::RapidNetApplicationBase.