User Manual, Developers Guide and API Documentation

glue::trigger::Trigger Class Reference

#include <trigger/Trigger.hpp>

Inheritance diagram for glue::trigger::Trigger:

Inheritance graph
[legend]
Collaboration diagram for glue::trigger::Trigger:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void onBERProviderDeleted ()
 Called by BERProvider if it will be deleted.
virtual void onFUNCreated ()
 Resolve inter-FU dependencies.
virtual void onNewMeasurement (double BER, int packetSize)
 Called by BERProvider, when new measurement is available.
 Trigger (wns::ldk::fun::FUN *fun, const wns::pyconfig::View &_config)
virtual ~Trigger ()

Private Attributes

wns::pyconfig::View config
bool connected
struct
glue::trigger::Trigger::Friends 
friends
wns::logger::Logger logger
int packetHeaderSize

Classes

struct  Friends


Detailed Description

Definition at line 36 of file Trigger.hpp.


Constructor & Destructor Documentation

Trigger::Trigger ( wns::ldk::fun::FUN fun,
const wns::pyconfig::View _config 
)

Definition at line 31 of file Trigger.cpp.

Trigger::~Trigger (  )  [virtual]

Definition at line 42 of file Trigger.cpp.


Member Function Documentation

void Trigger::onBERProviderDeleted (  )  [virtual]

The BERProvider will call this, if it's going to be deleted. Afterwards it will call this->setBERProvider(NULL).

Implements glue::BERConsumer.

Definition at line 68 of file Trigger.cpp.

void Trigger::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 49 of file Trigger.cpp.

void Trigger::onNewMeasurement ( double  BER,
int  packetSize 
) [virtual]

Implements glue::BERConsumer.

Definition at line 79 of file Trigger.cpp.


Member Data Documentation

Definition at line 65 of file Trigger.hpp.

Definition at line 57 of file Trigger.hpp.

Definition at line 66 of file Trigger.hpp.

Definition at line 68 of file Trigger.hpp.


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

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