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


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 |
Definition at line 36 of file Trigger.hpp.
| 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.
| 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.
Definition at line 65 of file Trigger.hpp.
bool glue::trigger::Trigger::connected [private] |
Definition at line 57 of file Trigger.hpp.
struct glue::trigger::Trigger::Friends glue::trigger::Trigger::friends [private] |
Definition at line 66 of file Trigger.hpp.
int glue::trigger::Trigger::packetHeaderSize [private] |
Definition at line 68 of file Trigger.hpp.
1.5.5