User Manual, Developers Guide and API Documentation

wifimac::pathselection::LinkQuality Class Reference

Stores the (averaged) quality for one link.

#include <pathselection/LinkQualityMeasurement.hpp>

Inheritance diagram for wifimac::pathselection::LinkQuality:

Inheritance graph
[legend]
Collaboration diagram for wifimac::pathselection::LinkQuality:

Collaboration graph
[legend]

List of all members.

Public Member Functions

wns::simulator::Time getLastRxFrameFlightTime () const
 Getter for the last FrameFlightTime which was received by the remote node.
void hasSendPiggybackedLQM ()
 Allows the parent to indicate that a piggybacked LQM has been transmitted.
 LinkQuality (wns::service::dll::UnicastAddress _rx, wns::simulator::Time _referenceFlightTime, wns::simulator::Time _periodicity, LinkQualityMeasurement *_parent)
 Creator.
void receivedLinkQualityIndicator (const LinkQualityMeasurementCommand *lqm)
 Allows the parent to indicate a fresh received link quality indicator by the remote node of this link.

Private Member Functions

void onTimeout ()
 Initiates the transmission of the probe frame after the random delay.
void periodically ()
 Periodically transmission of the probe-frame.

Private Attributes

wns::simulator::Time lastRxFrameFlightTime
 Stores the frame flight time of the last received lqm, this indicates the quality of the link (remote node)--->this.
wns::SlidingWindow linkCostTx
 Storage of the link quality this--->(remote node).
Metric oldLinkCostTxAvg
 Stores the last link quality for comparison purpose.
LinkQualityMeasurementparent
 Callback-pointer to the parent.
wns::simulator::Time periodicity
 Period of the transmission of the probe-packets.
const wns::simulator::Time referenceFlightTime
 frame flight time which should result in Metric(1.0)
const
wns::service::dll::UnicastAddress 
rx
 remote node of this link
bool rxLastFrame
 Indicates if a lqm as a reply was received since the last transmission of my lqm. If not, this indicates the my (or the reply) lqm got lost.
wns::distribution::Uniform uniform
 Random number generation for the random probe transmission delay.


Detailed Description

Definition at line 75 of file LinkQualityMeasurement.hpp.


Constructor & Destructor Documentation

LinkQuality::LinkQuality ( wns::service::dll::UnicastAddress  _rx,
wns::simulator::Time  _referenceFlightTime,
wns::simulator::Time  _periodicity,
LinkQualityMeasurement _parent 
)

Parameters:
_rx Address of the remote node of this the link
_referenceFlightTime frame flight time which should result in Metric(1.0)
_periodicity Period of the transmission of the probe-packets
_parent Callback pointer

Definition at line 42 of file LinkQualityMeasurement.cpp.


Member Function Documentation

wns::simulator::Time LinkQuality::getLastRxFrameFlightTime (  )  const

Note that this FrameFlightTime describes the cost (remote node)--->this, it is not used for the evaluation.

Definition at line 100 of file LinkQualityMeasurement.cpp.

void LinkQuality::hasSendPiggybackedLQM (  ) 

Definition at line 105 of file LinkQualityMeasurement.cpp.

void LinkQuality::onTimeout (  )  [private, virtual]

Implements wns::events::CanTimeout.

Definition at line 95 of file LinkQualityMeasurement.cpp.

void LinkQuality::periodically (  )  [private, virtual]

Note that the probe-frame is not transmitted immediatelly, but after a random delay which is limited by period/2.

Implements wns::events::PeriodicTimeout.

Definition at line 80 of file LinkQualityMeasurement.cpp.

void LinkQuality::receivedLinkQualityIndicator ( const LinkQualityMeasurementCommand lqm  ) 

Definition at line 60 of file LinkQualityMeasurement.cpp.


Member Data Documentation

Definition at line 155 of file LinkQualityMeasurement.hpp.

Definition at line 160 of file LinkQualityMeasurement.hpp.

Definition at line 165 of file LinkQualityMeasurement.hpp.

Definition at line 143 of file LinkQualityMeasurement.hpp.

Definition at line 138 of file LinkQualityMeasurement.hpp.

Definition at line 133 of file LinkQualityMeasurement.hpp.

Definition at line 128 of file LinkQualityMeasurement.hpp.

Definition at line 149 of file LinkQualityMeasurement.hpp.

Definition at line 170 of file LinkQualityMeasurement.hpp.


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

Generated on Sat May 26 03:32:44 2012 for openWNS by  doxygen 1.5.5