awds::RTTMetric Class Reference

A class that implements the RTT metric. More...

#include <RTTMetric.h>

Inheritance diagram for awds::RTTMetric:

awds::UCastMetric awds::Metric

List of all members.

Classes

struct  s_rtt_data

Public Member Functions

 RTTMetric (Routing *r)
virtual void on_recv (BasePacket *p)
virtual void on_wait (gea::Handle *h, gea::AbsTime t)
void go_history ()
void start ()
virtual void addNode (NodeId &nodeId)
virtual void begin_update ()
virtual void end_update ()
virtual std::string get_history ()
virtual std::string get_values ()
void go_measure ()

Public Attributes

gea::Duration interval
bool debug
double alpha
unsigned int packetSize

Protected Types

typedef std::map< NodeId,
s_rtt_data > 
RTTData
typedef std::map< NodeId,
std::vector< gea::Duration > > 
History

Protected Member Functions

virtual RTopology::link_quality_t my_get_quality (NodeDescr &ndescr)
virtual uint32_t my_calculate (RTopology::link_quality_t forward, RTopology::link_quality_t backward)

Protected Attributes

RTTData rttData
History * history
gea::Blocker blocker


Detailed Description

A class that implements the RTT metric.

Member Function Documentation

void awds::RTTMetric::begin_update (  )  [virtual]

begin_update() is called before the incoming topopaket is parsed, so that the metric can reset its node data, see end_update() too

Reimplemented from awds::Metric.

void awds::RTTMetric::end_update (  )  [virtual]

end_update() is called right after the topopaket has been parsed, so still reseted nodes can be deleted, so begin_update() too

Reimplemented from awds::Metric.


The documentation for this class was generated from the following files:

Generated on Fri Mar 27 13:58:27 2009 for AWDS by  doxygen 1.5.8