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


Public Member Functions | |
| void | addMapping (const RelayMapping &mapping) |
| RelayMapping | findMapping (const ConnectionIdentifier::CID &id) const |
| void | onFUNCreated () |
| Resolve inter-FU dependencies. | |
| void | processIncoming (const wns::ldk::CompoundPtr &compound) |
| Mandatory reimplementation from Processor. | |
| void | processOutgoing (const wns::ldk::CompoundPtr &) |
| RSRelayMapper (wns::ldk::fun::FUN *fun, const wns::pyconfig::View &config) | |
Private Types | |
| typedef std::list< RelayMapping > | Mappings |
Private Attributes | |
| wimac::ACKSwitch * | ackSwitch_ |
| wimac::ConnectionClassifier * | classifier_ |
| service::ConnectionManager * | connectionManager_ |
| wns::ldk::FunctionalUnit * | copyThreshold_ |
| The functional unit for which the upper commands shall be copied. | |
| std::string | copyThresholdName_ |
| wns::ldk::FunctionalUnit * | downRelayInject_ |
| Mappings | mappings_ |
| wns::ldk::FunctionalUnit * | upRelayInject_ |
Classes | |
| class | RelayMapping |
| One mapping that is stored in the RelayMapper. More... | |
Definition at line 119 of file RelayMapper.hpp.
typedef std::list<RelayMapping> wimac::relay::RSRelayMapper::Mappings [private] |
Definition at line 186 of file RelayMapper.hpp.
| RSRelayMapper::RSRelayMapper | ( | wns::ldk::fun::FUN * | fun, | |
| const wns::pyconfig::View & | config | |||
| ) |
Definition at line 77 of file RelayMapper.cpp.
| void RSRelayMapper::addMapping | ( | const RelayMapping & | mapping | ) |
Definition at line 192 of file RelayMapper.cpp.
| RSRelayMapper::RelayMapping RSRelayMapper::findMapping | ( | const ConnectionIdentifier::CID & | id | ) | const |
Definition at line 180 of file RelayMapper.cpp.
| void RSRelayMapper::onFUNCreated | ( | ) | [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 82 of file RelayMapper.cpp.
| void RSRelayMapper::processIncoming | ( | const wns::ldk::CompoundPtr & | compound | ) | [virtual] |
| void RSRelayMapper::processOutgoing | ( | const wns::ldk::CompoundPtr & | compound | ) | [virtual] |
reimplementation from Processor.
Implements wns::ldk::ProcessorInterface.
Definition at line 101 of file RelayMapper.cpp.
Definition at line 172 of file RelayMapper.hpp.
Definition at line 170 of file RelayMapper.hpp.
Definition at line 171 of file RelayMapper.hpp.
Definition at line 177 of file RelayMapper.hpp.
std::string wimac::relay::RSRelayMapper::copyThresholdName_ [private] |
Definition at line 178 of file RelayMapper.hpp.
Definition at line 168 of file RelayMapper.hpp.
Definition at line 187 of file RelayMapper.hpp.
Definition at line 169 of file RelayMapper.hpp.
1.5.5