User Manual, Developers Guide and API Documentation

dll::UpperConvergence Class Reference

UpperConvergence base class, connecting the DLL-FUN with a Network Layer. More...

#include <UpperConvergence.hpp>

Inheritance diagram for dll::UpperConvergence:

Inheritance graph
[legend]
Collaboration diagram for dll::UpperConvergence:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual wns::ldk::CommandPoolcreateReply (const wns::ldk::CommandPool *original) const
 Default createReply implementation.
virtual
wns::service::dll::UnicastAddress 
getMACAddress () const
virtual std::string getSubnetIdentifier ()
virtual void onFUNCreated ()
 Resolve inter-FU dependencies.
virtual void registerFlowHandler (wns::service::dll::FlowHandler *)
virtual void registerIRuleControl (wns::service::dll::IRuleControl *)
virtual void sendData (const wns::service::dll::UnicastAddress &_peer, const wns::osi::PDUPtr &_data, wns::service::dll::protocolNumber protocol, wns::service::dll::FlowID _dllFlowID=0)
 Deliver data to other peer component(s).
virtual void setMACAddress (const wns::service::dll::UnicastAddress &_sourceMACAddress)
 UpperConvergence (wns::ldk::fun::FUN *fun, const wns::pyconfig::View &config)
virtual ~UpperConvergence ()

Protected Attributes

wns::logger::Logger logger
wns::service::dll::UnicastAddress sourceMACAddress


Detailed Description

Each Layer2 has an UpperConvergence FunctionalUnit that accepts compounds from below and IDUs from above respectively and forwards them to the corresponding TCPIP instance and the lower FunctionalUnit respectively.

Definition at line 66 of file UpperConvergence.hpp.


Constructor & Destructor Documentation

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

Definition at line 32 of file UpperConvergence.cpp.

UpperConvergence::~UpperConvergence (  )  [virtual]

Definition at line 44 of file UpperConvergence.cpp.


Member Function Documentation

wns::ldk::CommandPool * UpperConvergence::createReply ( const wns::ldk::CommandPool original  )  const [virtual]

The default behaviour is to delegate creation of replies to upper functional units.

Reimplemented from wns::ldk::CommandTypeSpecifier< T >.

Definition at line 102 of file UpperConvergence.cpp.

wns::service::dll::UnicastAddress UpperConvergence::getMACAddress (  )  const [virtual]

virtual std::string dll::UpperConvergence::getSubnetIdentifier (  )  [inline, virtual]

Definition at line 94 of file UpperConvergence.hpp.

void UpperConvergence::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.

Reimplemented in lte::upperconvergence::ENBUpperConvergence, and lte::upperconvergence::UEUpperConvergence.

Definition at line 49 of file UpperConvergence.cpp.

void UpperConvergence::registerFlowHandler ( wns::service::dll::FlowHandler flowHandler  )  [inline, virtual]

virtual void dll::UpperConvergence::registerIRuleControl ( wns::service::dll::IRuleControl  )  [inline, virtual]

Implements wns::service::dll::Notification.

Definition at line 83 of file UpperConvergence.hpp.

void UpperConvergence::sendData ( const wns::service::dll::UnicastAddress macAddress,
const wns::osi::PDUPtr data,
wns::service::dll::protocolNumber  protocol,
wns::service::dll::FlowID  _dllFlowID = 0 
) [virtual]

Parameters:
[in] macAddress Destination component(s) where data is to be delivered.
[in] data Protocol Data Unit that is to be transported.

Implements wns::service::dll::DataTransmission< wns::service::dll::UnicastAddress >.

Reimplemented in lte::upperconvergence::ENBUpperConvergence, and lte::upperconvergence::UEUpperConvergence.

Definition at line 54 of file UpperConvergence.cpp.

void UpperConvergence::setMACAddress ( const wns::service::dll::UnicastAddress _sourceMACAddress  )  [virtual]

Definition at line 90 of file UpperConvergence.cpp.


Member Data Documentation

Definition at line 110 of file UpperConvergence.hpp.

Definition at line 109 of file UpperConvergence.hpp.


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

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