User Manual, Developers Guide and API Documentation

wns::ldk::multiplexer::OpcodeSetter Class Reference

#include <ldk/multiplexer/OpcodeSetter.hpp>

Inheritance diagram for wns::ldk::multiplexer::OpcodeSetter:

Inheritance graph
[legend]
Collaboration diagram for wns::ldk::multiplexer::OpcodeSetter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void onFUNCreated ()
 Resolve inter-FU dependencies.
 OpcodeSetter (fun::FUN *fuNet, FunctionalUnit *opcodeProvider, const pyconfig::View &config, int opcode)
 OpcodeSetter (fun::FUN *fuNet, const pyconfig::View &config)
virtual void processIncoming (const CompoundPtr &compound)
 Process compounds on uplink.
virtual void processOutgoing (const CompoundPtr &compound)
 Process compounds on downlink.

Private Attributes

pyconfig::View config
struct
wns::ldk::multiplexer::OpcodeSetter::_friends 
friends
logger::Logger logger
int opcode

Classes

struct  _friends


Detailed Description

Definition at line 45 of file OpcodeSetter.hpp.


Constructor & Destructor Documentation

OpcodeSetter::OpcodeSetter ( fun::FUN fuNet,
const pyconfig::View config 
)

Definition at line 41 of file OpcodeSetter.cpp.

OpcodeSetter::OpcodeSetter ( fun::FUN fuNet,
FunctionalUnit opcodeProvider,
const pyconfig::View config,
int  opcode 
)

Definition at line 58 of file OpcodeSetter.cpp.


Member Function Documentation

void OpcodeSetter::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 OpcodeSetter.cpp.

void OpcodeSetter::processIncoming ( const CompoundPtr compound  )  [virtual]

Override this method to handle incoming compounds.

Implements wns::ldk::ProcessorInterface.

Definition at line 107 of file OpcodeSetter.cpp.

void OpcodeSetter::processOutgoing ( const CompoundPtr  )  [virtual]

Override this method to handle outgoing compounds.

Implements wns::ldk::ProcessorInterface.

Definition at line 94 of file OpcodeSetter.cpp.


Member Data Documentation

Definition at line 64 of file OpcodeSetter.hpp.

Definition at line 71 of file OpcodeSetter.hpp.

Definition at line 65 of file OpcodeSetter.hpp.


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

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