A configuration class for three state Markov model. More...
#include "satellite-markov-conf.h"
Public Types | |
enum | MarkovFaderType_t { LOO_FADER , RAYLEIGH_FADER } |
Possible types of Markov state faders. More... | |
Public Member Functions | |
SatMarkovConf () | |
Constructor. More... | |
~SatMarkovConf () | |
Destructor. More... | |
bool | AreDecibelsUsed () |
Function for getting whether the calculations should return the fading value in decibels or not. More... | |
void | DoDispose () |
Do needed dispose actions. More... | |
Time | GetCooldownPeriod () |
Function for returning the cooldown period. More... | |
std::vector< std::vector< double > > | GetElevationProbabilities (uint32_t set) |
Function for returning the probabilities. More... | |
SatMarkovConf::MarkovFaderType_t | GetFaderType () |
Function for returning the selected fader type. More... | |
uint32_t | GetInitialState () |
Function for returning the initial state. More... | |
Ptr< SatLooConf > | GetLooConf () |
Function for returning the Loo's model configuration. More... | |
double | GetMinimumPositionChange () |
Function for returning the minimum position change distance. More... | |
uint32_t | GetNumOfSets () |
Function for returning the number of parameter sets. More... | |
uint32_t | GetProbabilitySetID (double elevation) |
Function for returning the parameter set. More... | |
Ptr< SatRayleighConf > | GetRayleighConf () |
Function for returning the Loo's model configuration. More... | |
uint32_t | GetStateCount () |
Function for returning the number of states. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
NS-3 function for type id. More... | |
Static Public Attributes | |
static const uint32_t | DEFAULT_ELEVATION_COUNT = 1 |
Default elevation count. More... | |
static const uint32_t | DEFAULT_STATE_COUNT = 3 |
Default state count. More... | |
Private Member Functions | |
void | Reset () |
Clear used variables. More... | |
Private Attributes | |
Time | m_cooldownPeriodLength |
Cooldown period lengthin seconds. More... | |
uint32_t | m_elevationCount |
Number of parameter sets. More... | |
SatMarkovConf::MarkovFaderType_t | m_faderType |
Selected fader type. More... | |
std::vector< double > | m_initialProbabilities |
Initial Markov state probabilities. More... | |
Ptr< SatLooConf > | m_looConf |
Loo configuration. More... | |
std::map< double, uint32_t > | m_markovElevations |
Markov elevations. More... | |
std::vector< std::vector< std::vector< double > > > | m_markovProbabilities |
Markov state change probabilities. More... | |
double | m_minimumPositionChangeInMeters |
Minimum position change in meters. More... | |
Ptr< SatRayleighConf > | m_rayleighConf |
Rayleigh configuration. More... | |
uint32_t | m_stateCount |
Number of states. More... | |
bool | m_useDecibels |
Defines whether the calculations should return the fading value in decibels or not. More... | |
A configuration class for three state Markov model.
This class provides configuration parameters for the Markov-based fading. It also acts as an interface for the configurations used by the different faders in Markov-based fading.
Definition at line 49 of file satellite-markov-conf.h.
Possible types of Markov state faders.
Enumerator | |
---|---|
LOO_FADER | |
RAYLEIGH_FADER |
Definition at line 55 of file satellite-markov-conf.h.
ns3::SatMarkovConf::SatMarkovConf | ( | ) |
Constructor.
Definition at line 98 of file satellite-markov-conf.cc.
References ns3::g_MarkovElevationStateChangeProbabilities, ns3::g_MarkovInitialStateProbabilities, m_elevationCount, m_initialProbabilities, m_looConf, m_markovElevations, m_markovProbabilities, m_rayleighConf, and m_stateCount.
ns3::SatMarkovConf::~SatMarkovConf | ( | ) |
Destructor.
Definition at line 147 of file satellite-markov-conf.cc.
References Reset().
bool ns3::SatMarkovConf::AreDecibelsUsed | ( | ) |
Function for getting whether the calculations should return the fading value in decibels or not.
Definition at line 316 of file satellite-markov-conf.cc.
References m_useDecibels.
void ns3::SatMarkovConf::DoDispose | ( | void | ) |
Do needed dispose actions.
Definition at line 175 of file satellite-markov-conf.cc.
References Reset().
Time ns3::SatMarkovConf::GetCooldownPeriod | ( | ) |
Function for returning the cooldown period.
Definition at line 235 of file satellite-markov-conf.cc.
References m_cooldownPeriodLength.
std::vector< std::vector< double > > ns3::SatMarkovConf::GetElevationProbabilities | ( | uint32_t | set | ) |
Function for returning the probabilities.
set | parameter set |
Definition at line 184 of file satellite-markov-conf.cc.
References m_elevationCount, and m_markovProbabilities.
SatMarkovConf::MarkovFaderType_t ns3::SatMarkovConf::GetFaderType | ( | ) |
Function for returning the selected fader type.
Definition at line 308 of file satellite-markov-conf.cc.
References m_faderType.
uint32_t ns3::SatMarkovConf::GetInitialState | ( | ) |
Function for returning the initial state.
Definition at line 259 of file satellite-markov-conf.cc.
References m_initialProbabilities, and m_stateCount.
Ptr< SatLooConf > ns3::SatMarkovConf::GetLooConf | ( | ) |
Function for returning the Loo's model configuration.
Definition at line 292 of file satellite-markov-conf.cc.
References m_looConf.
double ns3::SatMarkovConf::GetMinimumPositionChange | ( | ) |
Function for returning the minimum position change distance.
Definition at line 243 of file satellite-markov-conf.cc.
References m_minimumPositionChangeInMeters.
uint32_t ns3::SatMarkovConf::GetNumOfSets | ( | ) |
Function for returning the number of parameter sets.
Definition at line 251 of file satellite-markov-conf.cc.
References m_markovElevations.
uint32_t ns3::SatMarkovConf::GetProbabilitySetID | ( | double | elevation | ) |
Function for returning the parameter set.
elevation | elevation |
elevation angle can never be this large
Definition at line 197 of file satellite-markov-conf.cc.
References m_markovElevations.
Ptr< SatRayleighConf > ns3::SatMarkovConf::GetRayleighConf | ( | ) |
Function for returning the Loo's model configuration.
Definition at line 300 of file satellite-markov-conf.cc.
References m_rayleighConf.
uint32_t ns3::SatMarkovConf::GetStateCount | ( | ) |
Function for returning the number of states.
Definition at line 227 of file satellite-markov-conf.cc.
References m_stateCount.
|
static |
NS-3 function for type id.
Definition at line 63 of file satellite-markov-conf.cc.
References DEFAULT_ELEVATION_COUNT, DEFAULT_STATE_COUNT, m_cooldownPeriodLength, m_elevationCount, m_minimumPositionChangeInMeters, m_stateCount, and m_useDecibels.
|
private |
Clear used variables.
Definition at line 155 of file satellite-markov-conf.cc.
References m_elevationCount, m_initialProbabilities, m_looConf, m_markovElevations, m_markovProbabilities, m_rayleighConf, and m_stateCount.
Referenced by ~SatMarkovConf(), and DoDispose().
|
static |
Default elevation count.
Definition at line 64 of file satellite-markov-conf.h.
Referenced by ns3::SatLooConf::GetTypeId(), GetTypeId(), and ns3::SatRayleighConf::GetTypeId().
|
static |
Default state count.
Definition at line 69 of file satellite-markov-conf.h.
Referenced by ns3::SatLooConf::GetTypeId(), GetTypeId(), and ns3::SatRayleighConf::GetTypeId().
|
private |
Cooldown period lengthin seconds.
Definition at line 194 of file satellite-markov-conf.h.
Referenced by GetCooldownPeriod(), and GetTypeId().
|
private |
Number of parameter sets.
Definition at line 164 of file satellite-markov-conf.h.
Referenced by SatMarkovConf(), GetElevationProbabilities(), GetTypeId(), and Reset().
|
private |
Selected fader type.
Definition at line 214 of file satellite-markov-conf.h.
Referenced by GetFaderType().
|
private |
Initial Markov state probabilities.
Definition at line 179 of file satellite-markov-conf.h.
Referenced by SatMarkovConf(), GetInitialState(), and Reset().
|
private |
Loo configuration.
Definition at line 204 of file satellite-markov-conf.h.
Referenced by SatMarkovConf(), GetLooConf(), and Reset().
|
private |
Markov elevations.
Definition at line 184 of file satellite-markov-conf.h.
Referenced by SatMarkovConf(), GetNumOfSets(), GetProbabilitySetID(), and Reset().
|
private |
Markov state change probabilities.
Definition at line 174 of file satellite-markov-conf.h.
Referenced by SatMarkovConf(), GetElevationProbabilities(), and Reset().
|
private |
Minimum position change in meters.
Definition at line 189 of file satellite-markov-conf.h.
Referenced by GetMinimumPositionChange(), and GetTypeId().
|
private |
Rayleigh configuration.
Definition at line 209 of file satellite-markov-conf.h.
Referenced by SatMarkovConf(), GetRayleighConf(), and Reset().
|
private |
Number of states.
Definition at line 169 of file satellite-markov-conf.h.
Referenced by SatMarkovConf(), GetInitialState(), GetStateCount(), GetTypeId(), and Reset().
|
private |
Defines whether the calculations should return the fading value in decibels or not.
Definition at line 199 of file satellite-markov-conf.h.
Referenced by AreDecibelsUsed(), and GetTypeId().