ns3::SatLookUpTable Class Reference

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
 

Detailed Description

Loads a link result file and provide query service for BLER.

Definition at line 38 of file satellite-look-up-table.h.

Constructor & Destructor Documentation

◆ SatLookUpTable()

ns3::SatLookUpTable::SatLookUpTable ( std::string  linkResultPath)

Constructor with initialization parameters.

Parameters
linkResultPath

Definition at line 38 of file satellite-look-up-table.cc.

References Load().

+ Here is the call graph for this function:

◆ ~SatLookUpTable()

ns3::SatLookUpTable::~SatLookUpTable ( )
virtual

Destructor for SatLookUpTable.

Definition at line 44 of file satellite-look-up-table.cc.

Member Function Documentation

◆ DoDispose()

void ns3::SatLookUpTable::DoDispose ( void  )
privatevirtual

Definition at line 50 of file satellite-look-up-table.cc.

References m_bler, m_esNoDb, and m_ifs.

◆ GetBler()

double ns3::SatLookUpTable::GetBler ( double  sinrDb) const

Get the BLER corresponding to a given SINR.

Parameters
sinrDbSINR in logarithmic scale
Returns
BLER

Definition at line 79 of file satellite-look-up-table.cc.

References ns3::SatUtils::Interpolate(), m_bler, and m_esNoDb.

+ Here is the call graph for this function:

◆ GetEsNoDb()

double ns3::SatLookUpTable::GetEsNoDb ( double  blerTarget) const

Get Es/No in dB for a given BLER target.

Parameters
blerTargetBLER target (0-1)
Returns
Es/No target in dB

Definition at line 138 of file satellite-look-up-table.cc.

References ns3::SatUtils::Interpolate(), m_bler, and m_esNoDb.

+ Here is the call graph for this function:

◆ GetTypeId()

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

Get the type ID.

Returns
the object TypeId

Definition at line 72 of file satellite-look-up-table.cc.

◆ Load()

void ns3::SatLookUpTable::Load ( std::string  linkResultPath)
private

Load the link results.

Parameters
linkResultsPathPath to a link results file.

Definition at line 184 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:

Member Data Documentation

◆ m_bler

std::vector<double> ns3::SatLookUpTable::m_bler
private

Definition at line 82 of file satellite-look-up-table.h.

Referenced by DoDispose(), GetBler(), GetEsNoDb(), and Load().

◆ m_esNoDb

std::vector<double> ns3::SatLookUpTable::m_esNoDb
private

Definition at line 81 of file satellite-look-up-table.h.

Referenced by DoDispose(), GetBler(), GetEsNoDb(), and Load().

◆ m_ifs

std::ifstream* ns3::SatLookUpTable::m_ifs
private

Definition at line 83 of file satellite-look-up-table.h.

Referenced by DoDispose(), and Load().


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