User Manual, Developers Guide and API Documentation

wifimac::draftn::BlockUntilReply Class Reference

Blocks all further transmissions until a reply is received. More...

#include <draftn/BlockUntilReply.hpp>

Inheritance diagram for wifimac::draftn::BlockUntilReply:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BlockUntilReply (wns::ldk::fun::FUN *fun, const wns::pyconfig::View &config)
bool doIsAccepting (const wns::ldk::CompoundPtr &compound) const
void doOnData (const wns::ldk::CompoundPtr &compound)
void doSendData (const wns::ldk::CompoundPtr &compound)
 CompoundHandlerInterface.
void doWakeup ()
void onFUNCreated ()
 Initialization.
void onRxEnd ()
void onRxError ()
void onRxStart (wns::simulator::Time expRxTime)
 observer RxStartEnd
void onTimeout ()
 CanTimeout Interface.
void onTxEnd (const wns::ldk::CompoundPtr &compound)
 Called when the transmission ends.
void onTxStart (const wns::ldk::CompoundPtr &compound)
 Observe TxStartEnd of single fragments.
virtual ~BlockUntilReply ()

Private Types

enum  TxStatus { waiting, transmitting, finished }

Private Attributes

bool blocked
wns::Birthmark blockedBy
struct
wifimac::draftn::BlockUntilReply::Friends 
friends
wns::logger::Logger logger
const std::string managerName
const std::string rxStartEndName
const wns::simulator::Time sifsDuration
const std::string txStartEndName
TxStatus txStatus

Classes

struct  Friends


Detailed Description

This block is required for all DraftN-Transmissions which need an immediate reply (i.e. after SIFS waiting time). If a compound other than ACK arrives, it returns on later doIsAccepting calls false until the own transmission of the frame is finished and

Definition at line 52 of file BlockUntilReply.hpp.


Member Enumeration Documentation

Enumerator:
waiting 
transmitting 
finished 

Definition at line 90 of file BlockUntilReply.hpp.


Constructor & Destructor Documentation

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

Definition at line 39 of file BlockUntilReply.cpp.

BlockUntilReply::~BlockUntilReply (  )  [virtual]

Definition at line 54 of file BlockUntilReply.cpp.


Member Function Documentation

bool BlockUntilReply::doIsAccepting ( const wns::ldk::CompoundPtr compound  )  const

Definition at line 102 of file BlockUntilReply.cpp.

void BlockUntilReply::doOnData ( const wns::ldk::CompoundPtr compound  ) 

Definition at line 85 of file BlockUntilReply.cpp.

void BlockUntilReply::doSendData ( const wns::ldk::CompoundPtr compound  ) 

Definition at line 69 of file BlockUntilReply.cpp.

void BlockUntilReply::doWakeup (  ) 

Definition at line 119 of file BlockUntilReply.cpp.

void BlockUntilReply::onFUNCreated (  ) 

Definition at line 59 of file BlockUntilReply.cpp.

void BlockUntilReply::onRxEnd (  )  [virtual]

Implements wifimac::convergence::IRxStartEnd.

Definition at line 188 of file BlockUntilReply.cpp.

void BlockUntilReply::onRxError (  )  [virtual]

Implements wifimac::convergence::IRxStartEnd.

Definition at line 197 of file BlockUntilReply.cpp.

void BlockUntilReply::onRxStart ( wns::simulator::Time  expRxTime  )  [virtual]

Implements wifimac::convergence::IRxStartEnd.

Definition at line 175 of file BlockUntilReply.cpp.

void BlockUntilReply::onTimeout (  )  [virtual]

Implements wns::events::CanTimeout.

Definition at line 165 of file BlockUntilReply.cpp.

void BlockUntilReply::onTxEnd ( const wns::ldk::CompoundPtr compound  )  [virtual]

Implements wifimac::convergence::ITxStartEnd.

Definition at line 138 of file BlockUntilReply.cpp.

void BlockUntilReply::onTxStart ( const wns::ldk::CompoundPtr compound  )  [virtual]

Implements wifimac::convergence::ITxStartEnd.

Definition at line 127 of file BlockUntilReply.cpp.


Member Data Documentation

Definition at line 89 of file BlockUntilReply.hpp.

Definition at line 95 of file BlockUntilReply.hpp.

Definition at line 97 of file BlockUntilReply.hpp.

const std::string wifimac::draftn::BlockUntilReply::managerName [private]

Definition at line 85 of file BlockUntilReply.hpp.

Definition at line 87 of file BlockUntilReply.hpp.

Definition at line 84 of file BlockUntilReply.hpp.

Definition at line 86 of file BlockUntilReply.hpp.

Definition at line 94 of file BlockUntilReply.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