ns3::SatCnoReportMessage Class Reference

C/N0 (CNI) estimation report message. More...

#include "satellite-control-message.h"

+ Inheritance diagram for ns3::SatCnoReportMessage:
+ Collaboration diagram for ns3::SatCnoReportMessage:

Public Member Functions

 SatCnoReportMessage ()
 Constructor for SatCnoReportMessage. More...
 
 ~SatCnoReportMessage ()
 Destructor for SatCnoReportMessage. More...
 
double GetCnoEstimate () const
 Get C/N0 estimate. More...
 
virtual TypeId GetInstanceTypeId (void) const
 Get the type ID of instance. More...
 
SatControlMsgTag::SatControlMsgType_t GetMsgType () const
 Get type of the message. More...
 
virtual uint32_t GetSizeInBytes () const
 Get real size of the CR message, which can be used to e.g. More...
 
void SetCnoEstimate (double cno)
 Set C/N0 estimate. More...
 
- Public Member Functions inherited from ns3::SatControlMessage
 SatControlMessage ()
 Default constructor for SatControlMessage. More...
 
 ~SatControlMessage ()
 Destructor. More...
 

Static Public Member Functions

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

Private Attributes

double m_linkCNo
 C/N0 estimate. More...
 

Detailed Description

C/N0 (CNI) estimation report message.

(Tagged by SatControlMsgTag with type value SAT_CN0_REPORT)

This message is sent periodically by UT to GW. Or by ground entities to SAT

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

Constructor & Destructor Documentation

◆ SatCnoReportMessage()

ns3::SatCnoReportMessage::SatCnoReportMessage ( )

Constructor for SatCnoReportMessage.

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

◆ ~SatCnoReportMessage()

ns3::SatCnoReportMessage::~SatCnoReportMessage ( )

Destructor for SatCnoReportMessage.

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

Member Function Documentation

◆ GetCnoEstimate()

double ns3::SatCnoReportMessage::GetCnoEstimate ( void  ) const

Get C/N0 estimate.

Returns
Estimate of the C/N0.

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

References m_linkCNo.

◆ GetInstanceTypeId()

TypeId ns3::SatCnoReportMessage::GetInstanceTypeId ( void  ) const
virtual

Get the type ID of instance.

Returns
the object TypeId

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

References GetTypeId().

+ Here is the call graph for this function:

◆ GetMsgType()

SatControlMsgTag::SatControlMsgType_t ns3::SatCnoReportMessage::GetMsgType ( void  ) const
inlinevirtual

Get type of the message.

Returns
SatControlMsgTag::SAT_CN0_REPORT

Implements ns3::SatControlMessage.

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

References ns3::SatControlMsgTag::SAT_CN0_REPORT.

◆ GetSizeInBytes()

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

Get real size of the CR message, which can be used to e.g.

simulate real size.

Returns
Real size of the CR message.

Implements ns3::SatControlMessage.

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

References m_linkCNo.

◆ GetTypeId()

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

methods derived from base classes

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

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

◆ SetCnoEstimate()

void ns3::SatCnoReportMessage::SetCnoEstimate ( double  cno)

Set C/N0 estimate.

Parameters
cnoThe estimate of the C/N0.

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

References m_linkCNo.

Member Data Documentation

◆ m_linkCNo

double ns3::SatCnoReportMessage::m_linkCNo
private

C/N0 estimate.

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

Referenced by GetCnoEstimate(), GetSizeInBytes(), and SetCnoEstimate().


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