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

This control message is used to give time, power and frequency correction to UTs. More...

#include "satellite-control-message.h"

Inheritance diagram for ns3::SatCmtMessage:
Collaboration diagram for ns3::SatCmtMessage:

Public Member Functions

 SatCmtMessage ()
 Constructor for SatCmtMessage.
 ~SatCmtMessage ()
 Destructor for SatCmtMessage.
int16_t GetBurstTimeCorrection () const
 Get the burst time correction.
int16_t GetFrequencyCorrection () const
 Get the frequency correction.
uint8_t GetGroupId () const
 Get the group ID.
uint8_t GetLogonId () const
 Get the logon ID.
SatControlMsgTag::SatControlMsgType_t GetMsgType () const
 Get type of the message.
uint8_t GetPowerCorrection () const
 Get the powercorrection.
virtual uint32_t GetSizeInBytes () const
 Get real size of the message.
void SetBurstTimeCorrection (int32_t burstTimeCorrection)
 Set the burst time correction.
void SetFrequencyCorrection (int16_t frequencyCorrection)
 Set the frequency correction.
void SetGroupId (uint8_t groupId)
 Set the group ID.
void SetLogonId (uint8_t logonId)
 Set the logon ID.
void SetPowerCorrection (uint8_t powerCorrection)
 Set the power correction.
Public Member Functions inherited from ns3::SatControlMessage
 SatControlMessage ()
 Default constructor for SatControlMessage.
 ~SatControlMessage ()
 Destructor.

Static Public Member Functions

static TypeId GetTypeId (void)
 methods derived from base classes
Static Public Member Functions inherited from ns3::SatControlMessage
static TypeId GetTypeId (void)
 methods derived from base classes

Private Attributes

int8_t m_burstTimeCorrection
uint8_t m_burstTimeScaling
int16_t m_frequencyCorrection
uint8_t m_groupId
uint8_t m_logonId
uint8_t m_powerCorrection

Detailed Description

This control message is used to give time, power and frequency correction to UTs.

Flags are not used here, if no information is needed for a field, leave it to zero.

Definition at line 1189 of file satellite-control-message.h.

Constructor & Destructor Documentation

◆ SatCmtMessage()

ns3::SatCmtMessage::SatCmtMessage ( )

◆ ~SatCmtMessage()

ns3::SatCmtMessage::~SatCmtMessage ( )

Destructor for SatCmtMessage.

Definition at line 1009 of file satellite-control-message.cc.

Member Function Documentation

◆ GetBurstTimeCorrection()

int16_t ns3::SatCmtMessage::GetBurstTimeCorrection ( ) const

Get the burst time correction.

Returns
The burst time correction

Definition at line 1039 of file satellite-control-message.cc.

References m_burstTimeCorrection, and m_burstTimeScaling.

◆ GetFrequencyCorrection()

int16_t ns3::SatCmtMessage::GetFrequencyCorrection ( ) const

Get the frequency correction.

Returns
The frequency correction

Definition at line 1097 of file satellite-control-message.cc.

References m_frequencyCorrection.

◆ GetGroupId()

uint8_t ns3::SatCmtMessage::GetGroupId ( ) const

Get the group ID.

Returns
The group ID

Definition at line 1015 of file satellite-control-message.cc.

References m_groupId.

◆ GetLogonId()

uint8_t ns3::SatCmtMessage::GetLogonId ( ) const

Get the logon ID.

Returns
The logon ID

Definition at line 1027 of file satellite-control-message.cc.

References m_logonId.

◆ GetMsgType()

SatControlMsgTag::SatControlMsgType_t ns3::SatCmtMessage::GetMsgType ( ) const
inlinevirtual

Get type of the message.

Returns
SatControlMsgTag::SAT_CMT_CTRL_MSG

Implements ns3::SatControlMessage.

Definition at line 1212 of file satellite-control-message.h.

References ns3::SatControlMsgTag::SAT_CMT_CTRL_MSG.

◆ GetPowerCorrection()

uint8_t ns3::SatCmtMessage::GetPowerCorrection ( ) const

Get the powercorrection.

Information of power control flag is the MSB of the result. The 7 remaining bits are the power correction (if flag is 1) or EsN0 (otherwise).

Returns
The power correction

Definition at line 1085 of file satellite-control-message.cc.

References m_powerCorrection.

◆ GetSizeInBytes()

uint32_t ns3::SatCmtMessage::GetSizeInBytes ( ) const
virtual

Get real size of the message.

Returns
Real size of the message.

Implements ns3::SatControlMessage.

Definition at line 1109 of file satellite-control-message.cc.

◆ GetTypeId()

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

methods derived from base classes

Definition at line 991 of file satellite-control-message.cc.

References ns3::SatControlMessage::SatControlMessage().

Here is the call graph for this function:

◆ SetBurstTimeCorrection()

void ns3::SatCmtMessage::SetBurstTimeCorrection ( int32_t burstTimeCorrection)

Set the burst time correction.

Parameters
burstTimeCorrectionThe burst time correction

Definition at line 1045 of file satellite-control-message.cc.

References m_burstTimeCorrection, and m_burstTimeScaling.

◆ SetFrequencyCorrection()

void ns3::SatCmtMessage::SetFrequencyCorrection ( int16_t frequencyCorrection)

Set the frequency correction.

Parameters
frequencyCorrectionThe frequency correction

Definition at line 1103 of file satellite-control-message.cc.

References m_frequencyCorrection.

◆ SetGroupId()

void ns3::SatCmtMessage::SetGroupId ( uint8_t groupId)

Set the group ID.

Parameters
groupIdThe group ID

Definition at line 1021 of file satellite-control-message.cc.

References m_groupId.

◆ SetLogonId()

void ns3::SatCmtMessage::SetLogonId ( uint8_t logonId)

Set the logon ID.

Parameters
logonIdThe logon ID

Definition at line 1033 of file satellite-control-message.cc.

References m_logonId.

◆ SetPowerCorrection()

void ns3::SatCmtMessage::SetPowerCorrection ( uint8_t powerCorrection)

Set the power correction.

Parameters
powerCorrectionThe power correction. Information of power control flag is the MSB of the parameter. The 7 remaining bits are the power correction (if flag is 1) or EsN0 (otherwise).

Definition at line 1091 of file satellite-control-message.cc.

References m_powerCorrection.

Member Data Documentation

◆ m_burstTimeCorrection

int8_t ns3::SatCmtMessage::m_burstTimeCorrection
private

◆ m_burstTimeScaling

uint8_t ns3::SatCmtMessage::m_burstTimeScaling
private

◆ m_frequencyCorrection

int16_t ns3::SatCmtMessage::m_frequencyCorrection
private

◆ m_groupId

uint8_t ns3::SatCmtMessage::m_groupId
private

Definition at line 1288 of file satellite-control-message.h.

Referenced by SatCmtMessage(), GetGroupId(), and SetGroupId().

◆ m_logonId

uint8_t ns3::SatCmtMessage::m_logonId
private

Definition at line 1289 of file satellite-control-message.h.

Referenced by SatCmtMessage(), GetLogonId(), and SetLogonId().

◆ m_powerCorrection

uint8_t ns3::SatCmtMessage::m_powerCorrection
private

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