The class for satellite fading external input trace. More...
#include "satellite-fading-external-input-trace.h"
Public Types | |
enum | TraceFileType_e { FT_TWO_COLUMN , FT_THREE_COLUMN } |
Public Member Functions | |
SatFadingExternalInputTrace () | |
Default constructor. More... | |
SatFadingExternalInputTrace (TraceFileType_e type, std::string filePathName) | |
Constructor with initialization parameters. More... | |
~SatFadingExternalInputTrace () | |
Destructor for SatFadingExternalInputTrace. More... | |
double | GetFading () const |
Get the current fading value for this specific fading file. More... | |
bool | TestFadingTrace () const |
A method to test that the fading trace is according to assumptions. More... | |
Private Member Functions | |
void | ReadTrace (std::string filePathName) |
Read the fading trace from a binary file. More... | |
Private Attributes | |
float | m_startTime |
Fading start time and interval calculated from the actual trace file. More... | |
float | m_timeInterval |
TraceFileType_e | m_traceFileType |
There may be different fading file types. More... | |
std::vector< std::vector< float > > | m_traceVector |
Container for the fading trace. More... | |
Static Private Attributes | |
static const uint32_t | FADING_INDEX = 1 |
static const uint32_t | SCINTILLATION_INDEX = 2 |
static const uint32_t | TIME_INDEX = 0 |
Constant indices used in the fading container. More... | |
The class for satellite fading external input trace.
The class reads fading trace input samples from a file and provides the current fading value for this specific fading file.
Definition at line 39 of file satellite-fading-external-input-trace.h.
Enumerator | |
---|---|
FT_TWO_COLUMN | |
FT_THREE_COLUMN |
Definition at line 42 of file satellite-fading-external-input-trace.h.
ns3::SatFadingExternalInputTrace::SatFadingExternalInputTrace | ( | ) |
Default constructor.
Definition at line 41 of file satellite-fading-external-input-trace.cc.
ns3::SatFadingExternalInputTrace::SatFadingExternalInputTrace | ( | TraceFileType_e | type, |
std::string | filePathName | ||
) |
Constructor with initialization parameters.
type | |
filePathName |
Definition at line 50 of file satellite-fading-external-input-trace.cc.
References m_traceFileType, and ReadTrace().
ns3::SatFadingExternalInputTrace::~SatFadingExternalInputTrace | ( | ) |
Destructor for SatFadingExternalInputTrace.
Definition at line 60 of file satellite-fading-external-input-trace.cc.
double ns3::SatFadingExternalInputTrace::GetFading | ( | ) | const |
Get the current fading value for this specific fading file.
Definition at line 125 of file satellite-fading-external-input-trace.cc.
References ns3::SatUtils::DbToLinear(), FADING_INDEX, m_startTime, m_timeInterval, m_traceVector, and TIME_INDEX.
|
private |
Read the fading trace from a binary file.
filePathName | Path and file name of the fading file |
Definition at line 66 of file satellite-fading-external-input-trace.cc.
References FT_TWO_COLUMN, m_startTime, m_timeInterval, m_traceFileType, and m_traceVector.
Referenced by SatFadingExternalInputTrace().
bool ns3::SatFadingExternalInputTrace::TestFadingTrace | ( | ) | const |
A method to test that the fading trace is according to assumptions.
Definition at line 168 of file satellite-fading-external-input-trace.cc.
References m_timeInterval, m_traceVector, and TIME_INDEX.
|
staticprivate |
Definition at line 101 of file satellite-fading-external-input-trace.h.
Referenced by GetFading().
|
private |
Fading start time and interval calculated from the actual trace file.
Note, that the current implementation assumes that we have constant time interval between fading samples. This assumption has been made for speed-up issues.
Definition at line 110 of file satellite-fading-external-input-trace.h.
Referenced by GetFading(), and ReadTrace().
|
private |
Definition at line 111 of file satellite-fading-external-input-trace.h.
Referenced by GetFading(), ReadTrace(), and TestFadingTrace().
|
private |
There may be different fading file types.
Definition at line 95 of file satellite-fading-external-input-trace.h.
Referenced by SatFadingExternalInputTrace(), and ReadTrace().
|
private |
Container for the fading trace.
Definition at line 116 of file satellite-fading-external-input-trace.h.
Referenced by GetFading(), ReadTrace(), and TestFadingTrace().
|
staticprivate |
Definition at line 102 of file satellite-fading-external-input-trace.h.
|
staticprivate |
Constant indices used in the fading container.
Definition at line 100 of file satellite-fading-external-input-trace.h.
Referenced by GetFading(), and TestFadingTrace().