|
Lines 53-65
class Application : public Object
|
Link Here
|
|---|
|
| 53 |
{ |
53 |
{ |
| 54 |
public: |
54 |
public: |
| 55 |
static TypeId GetTypeId (void); |
55 |
static TypeId GetTypeId (void); |
| 56 |
Application(); |
56 |
Application (); |
| 57 |
virtual ~Application(); |
57 |
virtual ~Application (); |
| 58 |
|
58 |
|
| 59 |
/** |
59 |
/** |
| 60 |
* \brief Specify application start time |
60 |
* \brief Specify application start time |
| 61 |
* \param startTime Start time for this application, absolute time, |
61 |
* \param startTime Start time for this application, |
| 62 |
* relative to the start of the simulation. |
62 |
* relative to the current simulation time. |
| 63 |
* |
63 |
* |
| 64 |
* Applications start at various times in the simulation scenario. |
64 |
* Applications start at various times in the simulation scenario. |
| 65 |
* The Start method specifies when the application should be |
65 |
* The Start method specifies when the application should be |
|
|
| 67 |
* private "StartApplication" method defined below, which is called at the |
67 |
* private "StartApplication" method defined below, which is called at the |
| 68 |
* time specified, to cause the application to begin. |
68 |
* time specified, to cause the application to begin. |
| 69 |
*/ |
69 |
*/ |
| 70 |
void Start(const Time& startTime); |
70 |
void Start (const Time& startTime); |
| 71 |
|
71 |
|
| 72 |
/** |
72 |
/** |
| 73 |
* \brief Specify application start time. |
73 |
* \brief Specify application start time. |
| 74 |
* \param startVariable the random variable to use to pick |
74 |
* \param startVariable the random variable to use to pick |
| 75 |
* the real start time as an absolute time, in units of |
75 |
* the real start time as a relative time, in units of |
| 76 |
* seconds, relative to the start of the simulation. |
76 |
* seconds, relative to the current simulation time. |
| 77 |
*/ |
77 |
*/ |
| 78 |
void Start(const RandomVariable& startVariable); |
78 |
void Start (const RandomVariable& startVariable); |
| 79 |
|
79 |
|
| 80 |
/** |
80 |
/** |
| 81 |
* \brief Specify application stop time |
81 |
* \brief Specify application stop time |
| 82 |
* \param stopTime Stop time for this application, relative to the |
82 |
* \param stopTime Stop time for this application, relative to the |
| 83 |
* start of the simulation. |
83 |
* current simulation time. |
| 84 |
* |
84 |
* |
| 85 |
* Once an application has started, it is sometimes useful |
85 |
* Once an application has started, it is sometimes useful |
| 86 |
* to stop the application. The Stop method specifies when an |
86 |
* to stop the application. The Stop method specifies when an |
|
|
| 88 |
* the private StopApplication method, to be notified when that |
88 |
* the private StopApplication method, to be notified when that |
| 89 |
* time has come. |
89 |
* time has come. |
| 90 |
*/ |
90 |
*/ |
| 91 |
void Stop(const Time& stopTime); |
91 |
void Stop (const Time& stopTime); |
| 92 |
|
92 |
|
| 93 |
/** |
93 |
/** |
| 94 |
* \brief Specify application stop time |
94 |
* \brief Specify application stop time |
| 95 |
* \param stopVariable the random variable to use to pick |
95 |
* \param stopVariable the random variable to use to pick |
| 96 |
* the real stop time, in units of seconds, |
96 |
* the real stop time, in units of seconds, |
| 97 |
* relative to the start of the simulation. |
97 |
* relative to the current simulation time. |
| 98 |
*/ |
98 |
*/ |
| 99 |
void Stop(const RandomVariable& stopVariable); |
99 |
void Stop (const RandomVariable& stopVariable); |
| 100 |
|
100 |
|
| 101 |
/** |
101 |
/** |
| 102 |
* \returns the Node to which this Application object is attached. |
102 |
* \returns the Node to which this Application object is attached. |
| 103 |
*/ |
103 |
*/ |
| 104 |
Ptr<Node> GetNode() const; |
104 |
Ptr<Node> GetNode () const; |
| 105 |
|
105 |
|
| 106 |
/** |
106 |
/** |
| 107 |
* \param node the node to which this Application object is attached. |
107 |
* \param node the node to which this Application object is attached. |