Link results for forward link. More...
#include "satellite-link-results.h"
Public Member Functions | |
SatLinkResultsFwd () | |
Default constructor. More... | |
~SatLinkResultsFwd () | |
double | GetBler (SatEnums::SatModcod_t modcod, SatEnums::SatBbFrameType_t frameType, double esNoDb) const |
Get a BLER value from link results. More... | |
double | GetEsNoDb (SatEnums::SatModcod_t modcod, SatEnums::SatBbFrameType_t frameType, double blerTarget) const |
Get a Es/No requirement for a given BLER target from link results. More... | |
Public Member Functions inherited from ns3::SatLinkResults | |
SatLinkResults () | |
Default constructor. More... | |
void | Initialize () |
Initialize look up tables. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::SatLinkResults | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Protected Member Functions | |
virtual void | DoInitialize ()=0 |
Initialize look up tables. More... | |
Protected Attributes | |
double | m_shortFrameOffsetInDb |
std::map< SatEnums::SatModcod_t, Ptr< SatLookUpTable > > | m_table |
Map of satellite link result look up tables. More... | |
Protected Attributes inherited from ns3::SatLinkResults | |
std::string | m_inputPath |
The base path where the text files containing link results data can be found. More... | |
bool | m_isInitialized |
Indicates if SatLinkResults::Initialize has been called. More... | |
Link results for forward link.
The instance will be SatLinkResultsDvbS2 or SatLinkResultsDvbS2X.
Loads and maintains multiple SatLookUpTable. Provides query service based on modulation and coding scheme.
See usage examples in the parent class documentation (SatLinkResults).
Definition at line 354 of file satellite-link-results.h.
ns3::SatLinkResultsFwd::SatLinkResultsFwd | ( | ) |
Default constructor.
Definition at line 225 of file satellite-link-results.cc.
|
inline |
Definition at line 362 of file satellite-link-results.h.
|
protectedpure virtual |
Initialize look up tables.
Child classes must implement this function to initialize m_table member variable. This is typically done by loading pre-defined input files from the file system. In case of failure, the function should throw an error by calling NS_FATAL_ERROR
.
Implements ns3::SatLinkResults.
Implemented in ns3::SatLinkResultsDvbS2X, and ns3::SatLinkResultsDvbS2.
double ns3::SatLinkResultsFwd::GetBler | ( | SatEnums::SatModcod_t | modcod, |
SatEnums::SatBbFrameType_t | frameType, | ||
double | esNoDb | ||
) | const |
Get a BLER value from link results.
modcod | Modulation and coding scheme |
frameType | BB frame type (short, long) |
esNoDb | the received Es/No in dB |
double
ranging between [0..1]Must be run after SatLinkResults::Initialize is called.
Short BB frame is assumed to be requiring m_shortFrameOffsetInDb dB higher Es/No if compared to normal BB frame. TODO: Proper link results need to be added for short BB frame in FWD link.
Definition at line 247 of file satellite-link-results.cc.
References ns3::SatLinkResults::m_isInitialized, m_shortFrameOffsetInDb, m_table, and ns3::SatEnums::SHORT_FRAME.
double ns3::SatLinkResultsFwd::GetEsNoDb | ( | SatEnums::SatModcod_t | modcod, |
SatEnums::SatBbFrameType_t | frameType, | ||
double | blerTarget | ||
) | const |
Get a Es/No requirement for a given BLER target from link results.
modcod | Modulation and coding scheme |
frameType | BB frame type (short, long) |
blerTarget | Target BLER for the system |
Must be run after SatLinkResults::Initialize is called.
Short BB frame is assumed to be requiring "m_shortFrameOffsetInDb" dB higher Es/No if compared to normal BB frame. TODO: Proper link results need to be added for short BB frame in FWD link.
Definition at line 272 of file satellite-link-results.cc.
References ns3::SatLinkResults::m_isInitialized, m_shortFrameOffsetInDb, m_table, and ns3::SatEnums::SHORT_FRAME.
|
static |
Get the type ID.
Definition at line 233 of file satellite-link-results.cc.
References m_shortFrameOffsetInDb.
|
protected |
Definition at line 420 of file satellite-link-results.h.
Referenced by GetBler(), GetEsNoDb(), and GetTypeId().
|
protected |
Map of satellite link result look up tables.
Definition at line 418 of file satellite-link-results.h.
Referenced by ns3::SatLinkResultsDvbS2::DoInitialize(), ns3::SatLinkResultsDvbS2X::DoInitialize(), GetBler(), and GetEsNoDb().