Abstract class for storing link results. More...
#include "satellite-link-results.h"
Public Member Functions | |
SatLinkResults () | |
Default constructor. More... | |
void | Initialize () |
Initialize look up tables. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Protected Member Functions | |
virtual void | DoInitialize ()=0 |
Initialize look up tables. More... | |
Protected Attributes | |
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... | |
Abstract class for storing link results.
This class cannot be instantiated. Use the child classes instead.
The child class is expected to load and handle multiple SatLookUpTable, and provide query service on it.
Usage example:
Ptr<SatLinkResultsDvbRcs2> linkDvbRcs2 = CreateObject<SatLinkResultsDvbRcs2> (); Ptr<SatLinkResultsDvbS2> linkDvbS2 = CreateObject<SatLinkResultsDvbRcs2> (); linkDvbRcs2->Initialize (); linkDvbS2->Initialize ();
Definition at line 57 of file satellite-link-results.h.
ns3::SatLinkResults::SatLinkResults | ( | ) |
Default constructor.
Definition at line 48 of file satellite-link-results.cc.
References m_inputPath.
|
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
.
Implemented in ns3::SatLinkResultsFwd, ns3::SatLinkResultsRtn, ns3::SatLinkResultsDvbS2X, ns3::SatLinkResultsDvbS2, ns3::SatLinkResultsLora, ns3::SatLinkResultsFSim, and ns3::SatLinkResultsDvbRcs2.
Referenced by Initialize().
|
static |
void ns3::SatLinkResults::Initialize | ( | ) |
Initialize look up tables.
Must be called before any SatLinkResults::GetBler can be invoked.
Simply calls SatLinkResults::DoInitialize.
Definition at line 64 of file satellite-link-results.cc.
References DoInitialize(), and m_isInitialized.
|
protected |
The base path where the text files containing link results data can be found.
Definition at line 95 of file satellite-link-results.h.
Referenced by SatLinkResults(), ns3::SatLinkResultsDvbRcs2::DoInitialize(), ns3::SatLinkResultsFSim::DoInitialize(), ns3::SatLinkResultsLora::DoInitialize(), ns3::SatLinkResultsDvbS2::DoInitialize(), and ns3::SatLinkResultsDvbS2X::DoInitialize().
|
protected |
Indicates if SatLinkResults::Initialize has been called.
Definition at line 100 of file satellite-link-results.h.
Referenced by ns3::SatLinkResultsFwd::GetBler(), ns3::SatLinkResultsRtn::GetBler(), ns3::SatLinkResultsRtn::GetEbNoDb(), ns3::SatLinkResultsFwd::GetEsNoDb(), and Initialize().