awds::PktPair Class Reference

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

#include <PktPair.h>

Inheritance diagram for awds::PktPair:

awds::UCastMetric awds::Metric

List of all members.

Classes

struct  s_node_data

Public Member Functions

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

Public Attributes

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

Protected Types

typedef std::map< NodeId,
s_node_data > 
Nodes
typedef std::map< NodeId,
gea::AbsTime > 
FirstPackets

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

Nodes nodes
FirstPackets firstPackets
gea::Blocker blocker


Detailed Description

A class that implements the PktPair metric.

Member Function Documentation

void PktPair::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 PktPair::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:26 2009 for AWDS by  doxygen 1.5.8