User Manual, Developers Guide and API Documentation

wimac::relay::RSRelayMapper Class Reference

Implemenattion of the RelayMapper in the RS.

#include <relay/RelayMapper.hpp>

Inheritance diagram for wimac::relay::RSRelayMapper:

Inheritance graph
[legend]
Collaboration diagram for wimac::relay::RSRelayMapper:

Collaboration graph
[legend]

List of all members.

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< RelayMappingMappings

Private Attributes

wimac::ACKSwitchackSwitch_
wimac::ConnectionClassifierclassifier_
service::ConnectionManagerconnectionManager_
wns::ldk::FunctionalUnitcopyThreshold_
 The functional unit for which the upper commands shall be copied.
std::string copyThresholdName_
wns::ldk::FunctionalUnitdownRelayInject_
Mappings mappings_
wns::ldk::FunctionalUnitupRelayInject_

Classes

class  RelayMapping
 One mapping that is stored in the RelayMapper. More...


Detailed Description

Definition at line 119 of file RelayMapper.hpp.


Member Typedef Documentation

Definition at line 186 of file RelayMapper.hpp.


Constructor & Destructor Documentation

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

Definition at line 77 of file RelayMapper.cpp.


Member Function Documentation

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]

Implements wns::ldk::ProcessorInterface.

Definition at line 111 of file RelayMapper.cpp.

void RSRelayMapper::processOutgoing ( const wns::ldk::CompoundPtr compound  )  [virtual]

reimplementation from Processor.

Implements wns::ldk::ProcessorInterface.

Definition at line 101 of file RelayMapper.cpp.


Member Data Documentation

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.

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.


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

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