Loading...
Searching...
No Matches
ns3::SatOnOffApplication Class Reference

This class implements Satellite specific OnOff application. More...

#include "satellite-on-off-application.h"

Inheritance diagram for ns3::SatOnOffApplication:
Collaboration diagram for ns3::SatOnOffApplication:

Public Member Functions

 SatOnOffApplication ()
 Constructor for Satellite specific on-off application.
virtual ~SatOnOffApplication ()
 Destructor Satellite specific on-off application.
void EnableStatisticTags (bool enableStatus)
 Enable or disable statistic tags.
bool IsStatisticTagsEnabled () const
 Get enable status of statistic tags.
void SendPacketTrace (Ptr< const Packet > packet)
 Trace callback for on-off application Tx.

Static Public Member Functions

static TypeId GetTypeId (void)

Private Attributes

bool m_isConnectedWithTraceSource
bool m_isStatisticsTagsEnabled
 EnableStatisticsTags attribute.

Detailed Description

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.

Constructor & Destructor Documentation

◆ SatOnOffApplication()

ns3::SatOnOffApplication::SatOnOffApplication ( )

Constructor for Satellite specific on-off application.

Definition at line 56 of file satellite-on-off-application.cc.

References m_isConnectedWithTraceSource, and m_isStatisticsTagsEnabled.

◆ ~SatOnOffApplication()

ns3::SatOnOffApplication::~SatOnOffApplication ( )
virtual

Destructor Satellite specific on-off application.

Definition at line 63 of file satellite-on-off-application.cc.

Member Function Documentation

◆ EnableStatisticTags()

void ns3::SatOnOffApplication::EnableStatisticTags ( bool enableStatus)

Enable or disable statistic tags.

Parameters
enableStatusEnable status for statistics

Definition at line 69 of file satellite-on-off-application.cc.

References m_isConnectedWithTraceSource, m_isStatisticsTagsEnabled, and SendPacketTrace().

Referenced by GetTypeId().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTypeId()

TypeId ns3::SatOnOffApplication::GetTypeId ( void )
static

Definition at line 40 of file satellite-on-off-application.cc.

References EnableStatisticTags(), and IsStatisticTagsEnabled().

Here is the call graph for this function:

◆ IsStatisticTagsEnabled()

bool ns3::SatOnOffApplication::IsStatisticTagsEnabled ( ) const

Get enable status of statistic tags.

Returns
true if statistics are enabled, false if statistics are disabled

Definition at line 97 of file satellite-on-off-application.cc.

References m_isStatisticsTagsEnabled.

Referenced by GetTypeId().

Here is the caller graph for this function:

◆ SendPacketTrace()

void ns3::SatOnOffApplication::SendPacketTrace ( Ptr< const Packet > packet)

Trace callback for on-off application Tx.

Parameters
packetPacket send by on-off application.

Definition at line 103 of file satellite-on-off-application.cc.

Referenced by EnableStatisticTags().

Here is the caller graph for this function:

Member Data Documentation

◆ m_isConnectedWithTraceSource

bool ns3::SatOnOffApplication::m_isConnectedWithTraceSource
private

Definition at line 78 of file satellite-on-off-application.h.

Referenced by SatOnOffApplication(), and EnableStatisticTags().

◆ m_isStatisticsTagsEnabled

bool ns3::SatOnOffApplication::m_isStatisticsTagsEnabled
private

EnableStatisticsTags attribute.

Definition at line 77 of file satellite-on-off-application.h.

Referenced by SatOnOffApplication(), EnableStatisticTags(), and IsStatisticTagsEnabled().


The documentation for this class was generated from the following files: