|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
25 #ifndef RTT_ESTIMATOR_H
26 #define RTT_ESTIMATOR_H
28 #include "ns3/nstime.h"
29 #include "ns3/object.h"
77 virtual void Reset ();
a unique identifier for an interface.
virtual void Reset()
Resets the estimation to its initial state.
void Reset()
Resets the estimator.
static TypeId GetTypeId(void)
Get the type ID.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Base class for all RTT Estimators.
Time m_estimatedVariation
Current estimate variation.
void IntegerUpdate(Time m, uint32_t rttShift, uint32_t variationShift)
Method to update the rtt and variation estimates using integer arithmetic, used when the values of Al...
double m_alpha
Filter gain for average.
void Measurement(Time measure)
Add a new measurement to the estimator.
Time GetVariation(void) const
Note that this is not a formal statistical variance; it has the the same units as the estimate.
Ptr< RttEstimator > Copy() const
Copy object (including current internal state)
The "Mean--Deviation" RTT estimator, as discussed by Van Jacobson.
Smart pointer class similar to boost::intrusive_ptr.
uint32_t CheckForReciprocalPowerOfTwo(double val) const
Utility function to check for possible conversion of a double value (0 < value < 1) to a reciprocal p...
Time m_initialEstimatedRtt
Initial RTT estimation.
A base class which provides memory management and object aggregation.
static TypeId GetTypeId(void)
Get the type ID.
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
virtual Ptr< RttEstimator > Copy() const =0
Copy object (including current internal state)
Simulation virtual time values and global simulation resolution.
void FloatingPointUpdate(Time m)
Method to update the rtt and variation estimates using floating point arithmetic, used when the value...
virtual void Measurement(Time t)=0
Add a new measurement to the estimator.
uint32_t m_nSamples
Number of samples.
double m_beta
Filter gain for variation.
Time m_estimatedRtt
Current estimate.
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Time GetEstimate(void) const
gets the RTT estimate.
uint32_t GetNSamples(void) const
gets the number of samples used in the estimates