class for module SatCnoEstimator. More...
#include "satellite-cno-estimator.h"
Public Member Functions | |
SatBasicCnoEstimator () | |
Default construct a SatCnoEstimator. More... | |
SatBasicCnoEstimator (SatCnoEstimator::EstimationMode_t mode, Time window) | |
Construct a SatCnoEstimator with given estimation mode type. More... | |
~SatBasicCnoEstimator () | |
Destroy a SatCnoEstimator. More... | |
Public Member Functions inherited from ns3::SatCnoEstimator | |
SatCnoEstimator () | |
Default construct a SatCnoEstimator. More... | |
virtual | ~SatCnoEstimator () |
Destroy a SatCnoEstimator. More... | |
void | AddSample (double cno) |
Add a C/N0 sample to estimator. More... | |
double | GetCnoEstimation () |
Estimate C/N0 value of the samples. More... | |
Static Public Member Functions | |
static double | AddToSum (double currentSum, const std::pair< Time, double > &sample) |
Method to add a sample value to current sum. More... | |
Private Types | |
typedef std::map< Time, double > | SampleMap_t |
Private Member Functions | |
void | ClearOutdatedSamples () |
Clear outdated samples from storage. More... | |
virtual void | DoAddSample (double cno) |
Add a C/N0 sample to estimator. More... | |
virtual double | DoGetCnoEstimation () |
Estimate C/N0 value of the samples in window. More... | |
Private Attributes | |
EstimationMode_t | m_mode |
SampleMap_t | m_samples |
Time | m_window |
Additional Inherited Members | |
Public Types inherited from ns3::SatCnoEstimator | |
enum | EstimationMode_t { LAST , MINIMUM , AVERAGE } |
Definition of modes for estimator. More... | |
class for module SatCnoEstimator.
This SatCnoEstimator class holds information of a satellite DAMA entry. It's is created and used by NCC.
It supports three dirrent modes:
Definition at line 115 of file satellite-cno-estimator.h.
|
private |
Definition at line 155 of file satellite-cno-estimator.h.
ns3::SatBasicCnoEstimator::SatBasicCnoEstimator | ( | ) |
Default construct a SatCnoEstimator.
Definition at line 72 of file satellite-cno-estimator.cc.
ns3::SatBasicCnoEstimator::SatBasicCnoEstimator | ( | SatCnoEstimator::EstimationMode_t | mode, |
Time | window | ||
) |
Construct a SatCnoEstimator with given estimation mode type.
Definition at line 78 of file satellite-cno-estimator.cc.
ns3::SatBasicCnoEstimator::~SatBasicCnoEstimator | ( | ) |
Destroy a SatCnoEstimator.
This is the destructor for the SatCnoEstimator.
Definition at line 86 of file satellite-cno-estimator.cc.
|
inlinestatic |
Method to add a sample value to current sum.
currentSum | |
sample |
Definition at line 125 of file satellite-cno-estimator.h.
Referenced by DoGetCnoEstimation().
|
private |
Clear outdated samples from storage.
Definition at line 165 of file satellite-cno-estimator.cc.
References m_samples, and m_window.
Referenced by DoAddSample(), and DoGetCnoEstimation().
|
privatevirtual |
Add a C/N0 sample to estimator.
cno | C/N0 sample value |
Implements ns3::SatCnoEstimator.
Definition at line 92 of file satellite-cno-estimator.cc.
References ns3::SatCnoEstimator::AVERAGE, ClearOutdatedSamples(), ns3::SatCnoEstimator::LAST, m_mode, m_samples, and ns3::SatCnoEstimator::MINIMUM.
|
privatevirtual |
Estimate C/N0 value of the samples in window.
Implements ns3::SatCnoEstimator.
Definition at line 120 of file satellite-cno-estimator.cc.
References AddToSum(), ns3::SatCnoEstimator::AVERAGE, ClearOutdatedSamples(), ns3::SatCnoEstimator::LAST, m_mode, m_samples, and ns3::SatCnoEstimator::MINIMUM.
|
private |
Definition at line 159 of file satellite-cno-estimator.h.
Referenced by DoAddSample(), and DoGetCnoEstimation().
|
private |
Definition at line 157 of file satellite-cno-estimator.h.
Referenced by ClearOutdatedSamples(), DoAddSample(), and DoGetCnoEstimation().
|
private |
Definition at line 158 of file satellite-cno-estimator.h.
Referenced by ClearOutdatedSamples().