Loads a link result file and provide query service for BLER. More...
#include "satellite-look-up-table.h"
Inheritance diagram for ns3::SatLookUpTable:
Collaboration diagram for ns3::SatLookUpTable:Public Member Functions | |
| SatLookUpTable (std::string linkResultPath) | |
| Constructor with initialization parameters. More... | |
| virtual | ~SatLookUpTable () |
| Destructor for SatLookUpTable. More... | |
| double | GetBler (double sinrDb) const |
| Get the BLER corresponding to a given SINR. More... | |
| double | GetEsNoDb (double blerTarget) const |
| Get Es/No in dB for a given BLER target. More... | |
Static Public Member Functions | |
| static TypeId | GetTypeId () |
| Get the type ID. More... | |
Private Member Functions | |
| virtual void | DoDispose () |
| void | Load (std::string linkResultPath) |
| Load the link results. More... | |
Private Attributes | |
| std::vector< double > | m_bler |
| std::vector< double > | m_esNoDb |
| std::ifstream * | m_ifs |
Loads a link result file and provide query service for BLER.
Definition at line 39 of file satellite-look-up-table.h.
| ns3::SatLookUpTable::SatLookUpTable | ( | std::string | linkResultPath | ) |
Constructor with initialization parameters.
| linkResultPath |
Definition at line 41 of file satellite-look-up-table.cc.
References Load().
Here is the call graph for this function:
|
virtual |
Destructor for SatLookUpTable.
Definition at line 47 of file satellite-look-up-table.cc.
|
privatevirtual |
Definition at line 53 of file satellite-look-up-table.cc.
| double ns3::SatLookUpTable::GetBler | ( | double | sinrDb | ) | const |
Get the BLER corresponding to a given SINR.
| sinrDb | SINR in logarithmic scale |
Definition at line 82 of file satellite-look-up-table.cc.
References ns3::SatUtils::Interpolate(), m_bler, and m_esNoDb.
Here is the call graph for this function:| double ns3::SatLookUpTable::GetEsNoDb | ( | double | blerTarget | ) | const |
Get Es/No in dB for a given BLER target.
| blerTarget | BLER target (0-1) |
Definition at line 141 of file satellite-look-up-table.cc.
References ns3::SatUtils::Interpolate(), m_bler, and m_esNoDb.
Here is the call graph for this function:
|
static |
|
private |
Load the link results.
| linkResultsPath | Path to a link results file. |
Definition at line 187 of file satellite-look-up-table.cc.
References m_bler, m_esNoDb, and m_ifs.
Referenced by SatLookUpTable().
Here is the caller graph for this function:
|
private |
Definition at line 83 of file satellite-look-up-table.h.
Referenced by DoDispose(), GetBler(), GetEsNoDb(), and Load().
|
private |
Definition at line 82 of file satellite-look-up-table.h.
Referenced by DoDispose(), GetBler(), GetEsNoDb(), and Load().
|
private |
Definition at line 84 of file satellite-look-up-table.h.
Referenced by DoDispose(), and Load().