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


Definition at line 46 of file FakeFU.hpp.
| wns::ldk::tools::FakeFU::FakeFU | ( | ) | [inline] |
Definition at line 54 of file FakeFU.hpp.
| virtual wns::ldk::tools::FakeFU::~FakeFU | ( | ) | [inline, virtual] |
Definition at line 64 of file FakeFU.hpp.
| virtual wns::ldk::Command* wns::ldk::tools::FakeFU::activateCommand | ( | wns::ldk::CommandPool * | ) | const [inline, virtual] |
| virtual void wns::ldk::tools::FakeFU::calculateSizes | ( | const wns::ldk::CommandPool * | commandPool, | |
| Bit & | commandPoolSize, | |||
| Bit & | dataSize | |||
| ) | const [inline, virtual] |
During size calculation, each FunctionalUnit is asked for the size of the PCI and SDU. Calculation begins with the layer the PDU last visited. To be able to calculate the sizes, a FunctionalUnit may in turn need to know the sizes as calculated by the FunctionalUnit right above itself.
It can do that by simply asking the CommandProxy, giving itself as questioner. The CommandProxy will then delegate the calculation request to the next higher FunctionalUnit in the path of the PDU.
Implements wns::ldk::CommandTypeSpecifierInterface.
Definition at line 142 of file FakeFU.hpp.
| virtual void wns::ldk::tools::FakeFU::commitSizes | ( | wns::ldk::CommandPool * | ) | const [inline, virtual] |
| virtual wns::ldk::Command* wns::ldk::tools::FakeFU::copyCommand | ( | const wns::ldk::Command * | ) | const [inline, virtual] |
| virtual wns::ldk::Command* wns::ldk::tools::FakeFU::createCommand | ( | ) | const [inline, virtual] |
| virtual wns::ldk::CommandPool* wns::ldk::tools::FakeFU::createReply | ( | const wns::ldk::CommandPool * | original | ) | const [inline, virtual] |
A lower layer asks us to create a reply to the given CommandPool. Some functional units (such as ARQ) need to inject compounds (ACKs) back into the stack as reply to compounds they received.
Unfortunately, not every layer has enough information to create a PCI that codes a valid reply to the original PCI. But it may ask the CommandProxy to construct a reply for it. The CommandProxy in turn delegates the reply creation to the functional units right above the questioner. This is what the default implementation of createReply does, as implemented by CommandTypeSpecifier<>.
Layers that do know, how to create a reply can simply create a CommandPool, activate their Command and fill in the fields to form the reply.
Implements wns::ldk::CommandTypeSpecifierInterface.
Definition at line 136 of file FakeFU.hpp.
| virtual bool wns::ldk::tools::FakeFU::doIsAccepting | ( | const CompoundPtr & | compound | ) | const [inline, virtual] |
Definition at line 70 of file FakeFU.hpp.
| virtual void wns::ldk::tools::FakeFU::doOnData | ( | const CompoundPtr & | compound | ) | [inline, virtual] |
Definition at line 106 of file FakeFU.hpp.
| virtual void wns::ldk::tools::FakeFU::doSendData | ( | const CompoundPtr & | compound | ) | [inline, virtual] |
Definition at line 82 of file FakeFU.hpp.
| virtual void wns::ldk::tools::FakeFU::doWakeup | ( | ) | [inline, virtual] |
Definition at line 94 of file FakeFU.hpp.
| virtual wns::ldk::Command* wns::ldk::tools::FakeFU::getCommand | ( | const wns::ldk::CommandPool * | ) | const [inline, virtual] |
| virtual size_t wns::ldk::tools::FakeFU::getCommandObjSize | ( | ) | const [inline, virtual] |
| virtual CommandReaderInterface* wns::ldk::tools::FakeFU::getCommandReader | ( | CommandProxy * | ) | [inline, virtual] |
| virtual wns::ldk::CopyCommandInterface* wns::ldk::tools::FakeFU::getCopyCommandInterface | ( | ) | const [inline, virtual] |
| virtual fun::FUN* wns::ldk::tools::FakeFU::getFUN | ( | ) | const [inline, virtual] |
| virtual bool wns::ldk::tools::FakeFU::isAcceptingForwarded | ( | const CompoundPtr & | compound | ) | const [inline, virtual] |
Definition at line 76 of file FakeFU.hpp.
| virtual void wns::ldk::tools::FakeFU::onDataForwarded | ( | const CompoundPtr & | compound | ) | [inline, virtual] |
Definition at line 112 of file FakeFU.hpp.
| virtual void wns::ldk::tools::FakeFU::sendDataForwarded | ( | const CompoundPtr & | compound | ) | [inline, virtual] |
Definition at line 88 of file FakeFU.hpp.
| virtual void wns::ldk::tools::FakeFU::wakeupForwarded | ( | ) | [inline, virtual] |
Definition at line 100 of file FakeFU.hpp.
fun::Main* wns::ldk::tools::FakeFU::fun [private] |
Definition at line 185 of file FakeFU.hpp.
1.5.5