User Manual, Developers Guide and API Documentation

wifimac::convergence::PhyModeProvider Class Reference

The PhyModeProvider holds all configured PhyModes and provides methods for their simple access by the rate adaption. More...

#include <convergence/PhyModeProvider.hpp>

Collaboration diagram for wifimac::convergence::PhyModeProvider:

Collaboration graph
[legend]

List of all members.

Public Member Functions

PhyMode getDefaultPhyMode () const
MCS getMCS (wns::Ratio postSINR) const
 return the optimal MCS for a suggested sinr
wns::Ratio getMinSINR () const
 returns the minimal SINR for a connection
PhyMode getPreamblePhyMode (PhyMode pmFrame) const
 Returns the PhyMode which is used to model the preamble transmissions.
bool hasHighestMCS (const PhyMode &pm) const
 Returns if the phy mode uses the highest.
bool hasLowestMCS (const PhyMode &pm) const
 Returns if the phy mode uses the lowest MCS.
void mcsDown (PhyMode &pm) const
 Returns the next lower PhyMode.
void mcsUp (PhyMode &pm) const
 Returns the PhyMode with more dbps, but also with higher SINR requirement.
 PhyModeProvider (const wns::pyconfig::View &config)

Private Attributes

PhyMode defaultPhyMode
PhyMode preamblePhyMode
std::map< wns::Ratio, MCSsinr2mcs
wns::Ratio switchingPointOffset


Detailed Description

The PhyModes are ordered by their number of data bits per symbol (see PhyMode.hpp). This allows for the methods mcs[Up|Down], has[Lowest|Highest]. Of course, their robustness to interference should be ordered in the other way round.

Definition at line 47 of file PhyModeProvider.hpp.


Constructor & Destructor Documentation

PhyModeProvider::PhyModeProvider ( const wns::pyconfig::View config  ) 

Definition at line 35 of file PhyModeProvider.cpp.


Member Function Documentation

PhyMode PhyModeProvider::getDefaultPhyMode (  )  const

Definition at line 116 of file PhyModeProvider.cpp.

MCS PhyModeProvider::getMCS ( wns::Ratio  postSINR  )  const

Definition at line 123 of file PhyModeProvider.cpp.

wns::Ratio PhyModeProvider::getMinSINR (  )  const

Definition at line 143 of file PhyModeProvider.cpp.

PhyMode PhyModeProvider::getPreamblePhyMode ( PhyMode  pmFrame  )  const

Definition at line 104 of file PhyModeProvider.cpp.

bool PhyModeProvider::hasHighestMCS ( const PhyMode pm  )  const

Definition at line 98 of file PhyModeProvider.cpp.

bool PhyModeProvider::hasLowestMCS ( const PhyMode pm  )  const

Definition at line 91 of file PhyModeProvider.cpp.

void PhyModeProvider::mcsDown ( PhyMode pm  )  const

Definition at line 80 of file PhyModeProvider.cpp.

void PhyModeProvider::mcsUp ( PhyMode pm  )  const

Definition at line 69 of file PhyModeProvider.cpp.


Member Data Documentation

Definition at line 89 of file PhyModeProvider.hpp.

Definition at line 90 of file PhyModeProvider.hpp.

Definition at line 85 of file PhyModeProvider.hpp.

Definition at line 87 of file PhyModeProvider.hpp.


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

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