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