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


Private Member Functions | |
| virtual bool | doIsAccepting (const CompoundPtr &) const |
| virtual void | doSendData (const CompoundPtr &) |
| virtual Deliverer * | getDeliverer () const |
| virtual FunctionalUnit * | whenConnecting () |
| Return the FunctionalUnit holding the connector set for this FunctionalUnit. | |
Definition at line 43 of file UpUnconnectable.hpp.
| virtual bool wns::ldk::tools::UpUnconnectable::doIsAccepting | ( | const CompoundPtr & | ) | const [inline, private, virtual] |
Definition at line 65 of file UpUnconnectable.hpp.
| virtual void wns::ldk::tools::UpUnconnectable::doSendData | ( | const CompoundPtr & | ) | [inline, private, virtual] |
Definition at line 71 of file UpUnconnectable.hpp.
| virtual Deliverer* wns::ldk::tools::UpUnconnectable::getDeliverer | ( | ) | const [inline, private, virtual] |
| virtual FunctionalUnit* wns::ldk::tools::UpUnconnectable::whenConnecting | ( | ) | [inline, private, virtual] |
whenConnecting is used during fun::FUN setup as part of the connect mechanism. The default implementation provided here are perfectly fine for most cases.
Some units need to react differently on requests of other units depending on the identity of that other unit. The only solution without extending the interfaces and without borrowing the COMEFROM statement from another popular high level programming language... is to create different contacts.
A motivating example (actually the reason for all this):
Unfortunately, there is no way to tell the caller from a doSendData method call. The dispatcher needs to store an opcode in its command to remember to whom the command has to be delivered to.
The idea is to create an additional FU for every FU connecting from above (remember that we only allow full connects from above). When connecting from above, during connection setup a new FU has to be created, that gets connected and activates the dispatcher command with the right opcode.
Reimplemented from wns::ldk::FunctionalUnit.
Definition at line 55 of file UpUnconnectable.hpp.
1.5.5