User Manual, Developers Guide and API Documentation

wimemac::lowerMAC::timing::Backoff Class Reference

IEEE 802.11 DCF style backoff, including post-backoff after transmissions. More...

#include <lowerMAC/timing/Backoff.hpp>

Inheritance diagram for wimemac::lowerMAC::timing::Backoff:

Inheritance graph
[legend]
Collaboration diagram for wimemac::lowerMAC::timing::Backoff:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Backoff (BackoffObserver *backoffObserver, const wns::pyconfig::View &config)
wns::simulator::Time finishedAt () const
int getCurrentCW () const
void onChannelBusy ()
 Indicates a channel state transition idle->busy.
void onChannelIdle ()
 Indicates a channel state transition busy->idle.
void OnDRPreservationChange (bool isDRPreservationOn_)
void onRxEnd ()
void onRxError ()
void onRxStart (wns::simulator::Time expRxTime)
void registerEOBObserver (BackoffObserver *observer)
 notifying observers every time the backoff has finished, wether or not a transmission is waiting
bool transmissionRequest (int transmissionCounter)
 Transmission request by the scheduler.
 ~Backoff ()

Protected Attributes

int counter

Private Member Functions

void channelBusyDelay ()
void onTimeout ()
 implementation of CanTimeout interface
void startNewBackoffCountdown (wns::simulator::Time ifsDuration)
void waitForTimer (const wns::simulator::Time &waitDuration)

Private Attributes

const wns::simulator::Time aifsDuration
wns::simulator::Time aifsStart
bool backoffFinished
BackoffObserverbackoffObserver
bool channelIsBusy
int cw
const int cwMax
const int cwMin
bool duringAIFS
const wns::simulator::Time eifsDuration
std::vector< BackoffObserver * > eobObserver
bool isDRPreservationOn
wns::logger::Logger logger
bool rxError
const wns::simulator::Time slotDuration
bool transmissionWaiting
wns::distribution::Uniform uniform
bool wasChannelLastSensedBusyDuringDRP


Detailed Description

Essentially, the backoff in IEEE is very simple: Assure that between every channel busy->idle transition and the node's transmission a backoff is counted to zero.

Definition at line 61 of file Backoff.hpp.


Constructor & Destructor Documentation

wimemac::lowerMAC::timing::Backoff::Backoff ( BackoffObserver backoffObserver,
const wns::pyconfig::View config 
)

wimemac::lowerMAC::timing::Backoff::~Backoff (  ) 


Member Function Documentation

void wimemac::lowerMAC::timing::Backoff::channelBusyDelay (  )  [private]

wns::simulator::Time wimemac::lowerMAC::timing::Backoff::finishedAt (  )  const

time the backoff will be finished at (when called during AIFS the maximum waiting time will be used) wns::simulator::Time() if backoff hasn't started, current time when finished and idle

int wimemac::lowerMAC::timing::Backoff::getCurrentCW (  )  const [inline]

Definition at line 93 of file Backoff.hpp.

void wimemac::lowerMAC::timing::Backoff::onChannelBusy (  )  [virtual]

void wimemac::lowerMAC::timing::Backoff::onChannelIdle (  )  [virtual]

void wimemac::lowerMAC::timing::Backoff::OnDRPreservationChange ( bool  isDRPreservationOn_  ) 

void wimemac::lowerMAC::timing::Backoff::onRxEnd (  )  [virtual]

void wimemac::lowerMAC::timing::Backoff::onRxError (  )  [virtual]

void wimemac::lowerMAC::timing::Backoff::onRxStart ( wns::simulator::Time  expRxTime  )  [virtual]

void wimemac::lowerMAC::timing::Backoff::onTimeout (  )  [private, virtual]

void wimemac::lowerMAC::timing::Backoff::registerEOBObserver ( BackoffObserver observer  ) 

void wimemac::lowerMAC::timing::Backoff::startNewBackoffCountdown ( wns::simulator::Time  ifsDuration  )  [private]

bool wimemac::lowerMAC::timing::Backoff::transmissionRequest ( int  transmissionCounter  ) 

void wimemac::lowerMAC::timing::Backoff::waitForTimer ( const wns::simulator::Time waitDuration  )  [private]


Member Data Documentation

Definition at line 124 of file Backoff.hpp.

Definition at line 140 of file Backoff.hpp.

Definition at line 127 of file Backoff.hpp.

Definition at line 120 of file Backoff.hpp.

Definition at line 141 of file Backoff.hpp.

Definition at line 146 of file Backoff.hpp.

Definition at line 137 of file Backoff.hpp.

Definition at line 136 of file Backoff.hpp.

Definition at line 135 of file Backoff.hpp.

Definition at line 129 of file Backoff.hpp.

Definition at line 125 of file Backoff.hpp.

Definition at line 121 of file Backoff.hpp.

Definition at line 132 of file Backoff.hpp.

Definition at line 139 of file Backoff.hpp.

Definition at line 130 of file Backoff.hpp.

Definition at line 123 of file Backoff.hpp.

Definition at line 128 of file Backoff.hpp.

Definition at line 138 of file Backoff.hpp.

Definition at line 133 of file Backoff.hpp.


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

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