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


Public Member Functions | |
| virtual CompoundPtr | getSomethingToSend () |
| Return the PDU that is ready to be sent. | |
| virtual bool | hasCapacity () const |
| Return true, if the FunctionalUnit is still accepting compounds. | |
| virtual const CompoundPtr | hasSomethingToSend () const |
| Return a PDU that is ready to be sent or NULL, if none available. | |
| virtual void | processIncoming (const CompoundPtr &compound) |
| Process compounds on uplink. | |
| virtual void | processOutgoing (const CompoundPtr &) |
| Process compounds on downlink. | |
| Synchronizer (fun::FUN *fuNet, const pyconfig::View &_config) | |
Public Attributes | |
| int | ind |
| int | req |
Private Attributes | |
| CompoundPtr | buffer |
| pyconfig::View | config |
Definition at line 56 of file Synchronizer.hpp.
| wns::ldk::tools::Synchronizer::Synchronizer | ( | fun::FUN * | fuNet, | |
| const pyconfig::View & | _config | |||
| ) | [inline] |
Definition at line 65 of file Synchronizer.hpp.
| CompoundPtr Synchronizer::getSomethingToSend | ( | ) | [virtual] |
This method must never return NULL. This method will only be called after a call to hasSomethingToSend returned a non-null value. The FunctionalUnit must return the same PDU as returned by hasSomethingToSend.
Implements wns::ldk::DelayedInterface.
Definition at line 72 of file Synchronizer.cpp.
| bool Synchronizer::hasCapacity | ( | ) | const [virtual] |
While hasCapacity returns false, processIncoming will never be called.
Implements wns::ldk::DelayedInterface.
Definition at line 58 of file Synchronizer.cpp.
| const CompoundPtr Synchronizer::hasSomethingToSend | ( | ) | const [virtual] |
| void Synchronizer::processIncoming | ( | const CompoundPtr & | compound | ) | [virtual] |
Override this method to handle incoming compounds.
Implements wns::ldk::DelayedInterface.
Definition at line 38 of file Synchronizer.cpp.
| void Synchronizer::processOutgoing | ( | const CompoundPtr & | ) | [virtual] |
Override this method to handle outgoing compounds.
Implements wns::ldk::DelayedInterface.
Definition at line 47 of file Synchronizer.cpp.
Definition at line 91 of file Synchronizer.hpp.
Definition at line 90 of file Synchronizer.hpp.
Definition at line 86 of file Synchronizer.hpp.
Definition at line 87 of file Synchronizer.hpp.
1.5.5