This class implements Satellite specific OnOff application. More...
#include "satellite-on-off-application.h"
Public Member Functions | |
SatOnOffApplication () | |
Constructor for Satellite specific on-off application. More... | |
virtual | ~SatOnOffApplication () |
Destructor Satellite specific on-off application. More... | |
void | EnableStatisticTags (bool enableStatus) |
Enable or disable statistic tags. More... | |
bool | IsStatisticTagsEnabled () const |
Get enable status of statistic tags. More... | |
void | SendPacketTrace (Ptr< const Packet > packet) |
Trace callback for on-off application Tx. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Private Attributes | |
bool | m_isConnectedWithTraceSource |
bool | m_isStatisticsTagsEnabled |
EnableStatisticsTags attribute. More... | |
This class implements Satellite specific OnOff application.
It subclasses ns-3 'native' OnOffApplication to provide needed support for statics. Otherwise functionality of original OnOffApplication is not changed.
Definition at line 38 of file satellite-on-off-application.h.
ns3::SatOnOffApplication::SatOnOffApplication | ( | ) |
Constructor for Satellite specific on-off application.
Definition at line 56 of file satellite-on-off-application.cc.
|
virtual |
Destructor Satellite specific on-off application.
Definition at line 63 of file satellite-on-off-application.cc.
void ns3::SatOnOffApplication::EnableStatisticTags | ( | bool | enableStatus | ) |
Enable or disable statistic tags.
enableStatus | Enable status for statistics |
Definition at line 69 of file satellite-on-off-application.cc.
References m_isConnectedWithTraceSource, m_isStatisticsTagsEnabled, and SendPacketTrace().
Referenced by GetTypeId().
|
static |
Definition at line 40 of file satellite-on-off-application.cc.
References EnableStatisticTags(), and IsStatisticTagsEnabled().
bool ns3::SatOnOffApplication::IsStatisticTagsEnabled | ( | ) | const |
Get enable status of statistic tags.
Definition at line 97 of file satellite-on-off-application.cc.
References m_isStatisticsTagsEnabled.
Referenced by GetTypeId().
void ns3::SatOnOffApplication::SendPacketTrace | ( | Ptr< const Packet > | packet | ) |
Trace callback for on-off application Tx.
packet | Packet send by on-off application. |
Definition at line 103 of file satellite-on-off-application.cc.
Referenced by EnableStatisticTags().
|
private |
Definition at line 78 of file satellite-on-off-application.h.
Referenced by EnableStatisticTags().
|
private |
EnableStatisticsTags
attribute.
Definition at line 77 of file satellite-on-off-application.h.
Referenced by EnableStatisticTags(), and IsStatisticTagsEnabled().