![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <mac/CSMACA.hpp>


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::StopAndWait * | stopAndWaitARQ |
| std::string | stopAndWaitARQName |
Definition at line 54 of file CSMACA.hpp.
| 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.
| void CSMACA::backoffExpired | ( | ) | [private, virtual] |
| 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] |
| 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.
Definition at line 99 of file CSMACA.hpp.
Backoff glue::mac::CSMACA::backoff [private] |
Definition at line 104 of file CSMACA.hpp.
Definition at line 98 of file CSMACA.hpp.
wns::logger::Logger glue::mac::CSMACA::logger [private] |
Definition at line 96 of file CSMACA.hpp.
Definition at line 105 of file CSMACA.hpp.
Definition at line 102 of file CSMACA.hpp.
std::string glue::mac::CSMACA::stopAndWaitARQName [private] |
Definition at line 101 of file CSMACA.hpp.
1.5.5