User Manual, Developers Guide and API Documentation

wifimac::draftn::BroadcastLinkQualitywithMIMO Class Reference

Stores the (averaged) quality for one link as measured.

#include <draftn/BeaconLinkQualityMeasurementwithMIMO.hpp>

Inheritance diagram for wifimac::draftn::BroadcastLinkQualitywithMIMO:

Inheritance graph
[legend]
Collaboration diagram for wifimac::draftn::BroadcastLinkQualitywithMIMO:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BroadcastLinkQualitywithMIMO (const wns::pyconfig::View &config_, BeaconLinkQualityMeasurementwithMIMO *parent_, wns::service::dll::UnicastAddress peerAddress_, wns::service::dll::UnicastAddress myAddress_, wns::simulator::Time interval_)
 Creator.
void deadPeerMeasurement ()
 Indicates the reception of a beacon from peer without a measurement.
wns::Ratio getAverageSINR ()
 Returns the average sinr out of the sinr MIB.
SINRwithMIMOInformationBase::NumSSToFactorMap getMIMOfactors ()
double getSuccessRate ()
 Returns the received beacon success rate.
bool isActive () const
 Returns if beacons have been received at all.
void newBeacon (wns::simulator::Time interval)
 Indicates the reception of a new beacon from peer.
wifimac::pathselection::Metric newPeerMeasurement (double peerSuccessRate, wns::Ratio peerSINR, SINRwithMIMOInformationBase::NumSSToFactorMap factors)
 Indicates a new measurement of the Me->Peer link.

Private Member Functions

double getBestRate (wns::Ratio sinr)
 Converts SINR to Mbps.
double getBestTotalRate (wns::Ratio peerSINR, SINRwithMIMOInformationBase::NumSSToFactorMap factors)
void onTimeout ()
 Is called if no beacon was received after 1.5 beacon intervalls.

Private Attributes

const wns::pyconfig::View config
 Store the config.
wns::simulator::Time curInterval
 The last indicated beacon interval.
bool linkCreated
 Remember if the link is created in the routing table, it has to be constantly active to remain created.
const wns::simulator::Time maximumACKDuration
 expected duration of an ACK for metric calculation
const int maxMissedBeacons
 Maximum number of missed beacons befor a link is closed.
const Bit meanFrameSize
 frame size for metric calculation
int missedBeaconsInRow
 Counts how many beacons are missed in a row, determines if the link is active.
wns::service::dll::UnicastAddress myAddress
 My address.
BeaconLinkQualityMeasurementwithMIMOparent
 Callback-pointer to the parent.
const
wns::service::dll::UnicastAddress 
peerAddress
 remote address
const wns::simulator::Time preambleDuration
 Preamble duration for metric calculation.
wifimac::pathselection::IPathSelectionps
 Pointer to the path selection entity.
const double scalingFactor
 scaling factor for metric calculation
const wns::simulator::Time sifsDuration
 SIFS duration for metric calculation.
wifimac::draftn::SINRwithMIMOInformationBasesinrMIB
 Pointer to the node's SINR informatin base.
const wns::simulator::Time slotDuration
 Slot duration for metric calculation.
wns::SlidingWindow successRate
 Storage of the success rate peer --> me.


Detailed Description

Definition at line 98 of file BeaconLinkQualityMeasurementwithMIMO.hpp.


Constructor & Destructor Documentation

BroadcastLinkQualitywithMIMO::BroadcastLinkQualitywithMIMO ( const wns::pyconfig::View config_,
BeaconLinkQualityMeasurementwithMIMO parent_,
wns::service::dll::UnicastAddress  peerAddress_,
wns::service::dll::UnicastAddress  myAddress_,
wns::simulator::Time  interval_ 
)

Definition at line 53 of file BeaconLinkQualityMeasurementwithMIMO.cpp.


Member Function Documentation

void BroadcastLinkQualitywithMIMO::deadPeerMeasurement (  ) 

Definition at line 234 of file BeaconLinkQualityMeasurementwithMIMO.cpp.

wns::Ratio BroadcastLinkQualitywithMIMO::getAverageSINR (  ) 

Definition at line 96 of file BeaconLinkQualityMeasurementwithMIMO.cpp.

double BroadcastLinkQualitywithMIMO::getBestRate ( wns::Ratio  sinr  )  [private]

TODO: Exchange against call to protocol calculator

Definition at line 180 of file BeaconLinkQualityMeasurementwithMIMO.cpp.

double BroadcastLinkQualitywithMIMO::getBestTotalRate ( wns::Ratio  peerSINR,
SINRwithMIMOInformationBase::NumSSToFactorMap  factors 
) [private]

Definition at line 217 of file BeaconLinkQualityMeasurementwithMIMO.cpp.

SINRwithMIMOInformationBase::NumSSToFactorMap BroadcastLinkQualitywithMIMO::getMIMOfactors (  ) 

Definition at line 109 of file BeaconLinkQualityMeasurementwithMIMO.cpp.

double BroadcastLinkQualitywithMIMO::getSuccessRate (  ) 

Definition at line 81 of file BeaconLinkQualityMeasurementwithMIMO.cpp.

bool BroadcastLinkQualitywithMIMO::isActive (  )  const

Definition at line 268 of file BeaconLinkQualityMeasurementwithMIMO.cpp.

void BroadcastLinkQualitywithMIMO::newBeacon ( wns::simulator::Time  interval  ) 

Definition at line 122 of file BeaconLinkQualityMeasurementwithMIMO.cpp.

wifimac::pathselection::Metric BroadcastLinkQualitywithMIMO::newPeerMeasurement ( double  peerSuccessRate,
wns::Ratio  peerSINR,
SINRwithMIMOInformationBase::NumSSToFactorMap  factors 
)

Definition at line 134 of file BeaconLinkQualityMeasurementwithMIMO.cpp.

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

Implements wns::events::CanTimeout.

Definition at line 249 of file BeaconLinkQualityMeasurementwithMIMO.cpp.


Member Data Documentation

Definition at line 156 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 168 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 179 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 190 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 200 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 188 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 175 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 165 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 159 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 162 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 196 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 182 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 198 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 194 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 185 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 192 of file BeaconLinkQualityMeasurementwithMIMO.hpp.

Definition at line 171 of file BeaconLinkQualityMeasurementwithMIMO.hpp.


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

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