User Manual, Developers Guide and API Documentation

glue::mac::StopAndWait Class Reference

#include <mac/CSMACA.hpp>

Inheritance diagram for glue::mac::StopAndWait:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual wns::ldk::CompoundPtr getData ()
 Return a user data Compound for transmission.
virtual void onCarrierBusy ()
 called from PHY implementation if carrier is busy after it has been idle
virtual void onCarrierIdle ()
 called from PHY implementation if carrier is idle after it has been busy
virtual void onCollision ()
 called from PHY implementation if collision happened
virtual void onDataSent (wns::osi::PDUPtr pdu)
 called from PHY implementation if data has been transmitted
virtual void onTimeout ()
 Your callback. Implement this.
 StopAndWait (wns::ldk::fun::FUN *fuNet, const wns::pyconfig::View &config)

Private Attributes

double longResendTimeout
double shortResendTimeout
bool waitingForAckTransmission


Detailed Description

Definition at line 109 of file CSMACA.hpp.


Constructor & Destructor Documentation

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

Reimplemented from wns::ldk::arq::StopAndWait.

Definition at line 165 of file CSMACA.cpp.


Member Function Documentation

wns::ldk::CompoundPtr StopAndWait::getData (  )  [virtual]

getData will only get called after a call to hasData. Every implementation of this interface /must/ return the same Compound for subsequent hasData/getData calls.

Reimplemented from wns::ldk::arq::StopAndWait.

Definition at line 192 of file CSMACA.cpp.

void StopAndWait::onCarrierBusy (  )  [virtual]

Implements wns::service::phy::copper::CarrierSensing.

Definition at line 226 of file CSMACA.cpp.

void StopAndWait::onCarrierIdle (  )  [virtual]

Implements wns::service::phy::copper::CarrierSensing.

Definition at line 222 of file CSMACA.cpp.

void StopAndWait::onCollision (  )  [virtual]

Implements wns::service::phy::copper::CarrierSensing.

Definition at line 247 of file CSMACA.cpp.

void StopAndWait::onDataSent ( wns::osi::PDUPtr  pdu  )  [virtual]

Note:
transmission may or may not have been successful

if the transmission is (manually) canceled for whatsoever reason, this method is not called.

Parameters:
pdu PDU that has just been sent

Implements wns::service::phy::copper::DataTransmissionFeedbackInterface.

Definition at line 200 of file CSMACA.cpp.

void StopAndWait::onTimeout (  )  [virtual]

The deriver is forced to implement this method. It gets called, whenever the timer fires.

Reimplemented from wns::ldk::arq::StopAndWait.

Definition at line 239 of file CSMACA.cpp.


Member Data Documentation

Definition at line 131 of file CSMACA.hpp.

Definition at line 130 of file CSMACA.hpp.

Definition at line 132 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