User Manual, Developers Guide and API Documentation

glue::mac::CSMACA Class Reference

802.11 style MAC More...

#include <mac/CSMACA.hpp>

Inheritance diagram for glue::mac::CSMACA:

Inheritance graph
[legend]
Collaboration diagram for glue::mac::CSMACA:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CSMACA (wns::ldk::fun::FUN *fun, const wns::pyconfig::View &config)
virtual ~CSMACA ()

Private Member Functions

virtual void backoffExpired ()
virtual bool doIsAccepting (const wns::ldk::CompoundPtr &_compound) const
virtual void doOnData (const wns::ldk::CompoundPtr &_compound)
virtual void doSendData (const wns::ldk::CompoundPtr &_compound)
virtual void doWakeup ()
virtual void onCarrierIdle ()
virtual void onFUNCreated ()
 Resolve inter-FU dependencies.
virtual void sifsExpired ()

Private Attributes

wns::ldk::CompoundPtr ackFrame
Backoff backoff
wns::ldk::CompoundPtr iFrame
wns::logger::Logger logger
wns::simulator::Time sifsLength
wns::ldk::arq::StopAndWaitstopAndWaitARQ
std::string stopAndWaitARQName


Detailed Description

Warning:
NOT READY FOR USAGE! This FU needs testing (but it is unclear how, see CSMACATest).

Definition at line 54 of file CSMACA.hpp.


Constructor & Destructor Documentation

CSMACA::CSMACA ( wns::ldk::fun::FUN fun,
const wns::pyconfig::View config 
)

Definition at line 33 of file CSMACA.cpp.

CSMACA::~CSMACA (  )  [virtual]

Definition at line 67 of file CSMACA.cpp.


Member Function Documentation

void CSMACA::backoffExpired (  )  [private, virtual]

Implements glue::mac::BackoffObserver.

Definition at line 135 of file CSMACA.cpp.

bool CSMACA::doIsAccepting ( const wns::ldk::CompoundPtr _compound  )  const [private, virtual]

Definition at line 72 of file CSMACA.cpp.

void CSMACA::doOnData ( const wns::ldk::CompoundPtr _compound  )  [private, virtual]

Definition at line 119 of file CSMACA.cpp.

void CSMACA::doSendData ( const wns::ldk::CompoundPtr _compound  )  [private, virtual]

Definition at line 88 of file CSMACA.cpp.

void CSMACA::doWakeup (  )  [private, virtual]

Definition at line 112 of file CSMACA.cpp.

void CSMACA::onCarrierIdle (  )  [private, virtual]

Reimplemented from glue::mac::BackoffObserver.

Definition at line 159 of file CSMACA.cpp.

void CSMACA::onFUNCreated (  )  [private, virtual]

Often FunctionalUnits require the collaboration with other FunctionalUnits to accomplish their task. For the collaboration between FunctionalUnits we coined the term "friendship".

The onFUNCreated method is a hook being called after the complete FUN has been set up. FunctionalUnits requiring the collaboration with other FunctionalUnits should resolve these dependencies by implementing this hook accordingly.

Finding friends is usually done calling wns::ldk::fun::FUN::findFriend.

When building reconfigurable FUNs, this method may get called multiple times (e.g., after each FUN reconfiguration). Keep that in mind when allocating resources in your onFUNCreated implementation.

Reimplemented from wns::ldk::FunctionalUnit.

Definition at line 125 of file CSMACA.cpp.

void CSMACA::sifsExpired (  )  [private, virtual]

Definition at line 147 of file CSMACA.cpp.


Member Data Documentation

Definition at line 99 of file CSMACA.hpp.

Definition at line 104 of file CSMACA.hpp.

Definition at line 98 of file CSMACA.hpp.

Definition at line 96 of file CSMACA.hpp.

Definition at line 105 of file CSMACA.hpp.

Definition at line 102 of file CSMACA.hpp.

Definition at line 101 of file CSMACA.hpp.


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

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