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


Public Member Functions | |
| virtual void | calculateSizes (const CommandPool *commandPool, Bit &commandPoolSize, Bit &dataSize) const |
| Default calculateSizes implementation. | |
| Bit | getCommandSize () const |
| Bit | getSegmentSize () const |
| 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 | processOutgoing (const CompoundPtr &compound) |
| Process compounds on downlink. | |
| SAR (fun::FUN *fuNet, const wns::pyconfig::View &config) | |
| void | setSegmentSize (const Bit size) |
| virtual | ~SAR () |
Protected Member Functions | |
| virtual void | prepareSegment () |
Protected Attributes | |
| CompoundPtr | backupCompound |
| int | fragmentNumber |
| Bit | headerSize |
| logger::Logger | logger |
| Bit | nextPos |
| CompoundPtr | nextSegment |
| Bit | oldPCISize |
| Bit | oldSDUSize |
| CompoundPtr | outgoing |
| bool | preserving |
| Bit | segmentSize |
| Bit | totalSize |
Private Member Functions | |
| virtual bool | onSuspend () const |
Definition at line 79 of file SAR.hpp.
| wns::ldk::sar::SAR< COMMANDTYPE >::SAR | ( | fun::FUN * | fuNet, | |
| const wns::pyconfig::View & | config | |||
| ) | [inline] |
| virtual wns::ldk::sar::SAR< COMMANDTYPE >::~SAR | ( | ) | [inline, virtual] |
| virtual void wns::ldk::sar::SAR< COMMANDTYPE >::calculateSizes | ( | const CommandPool * | commandPool, | |
| Bit & | commandPoolSize, | |||
| Bit & | dataSize | |||
| ) | const [inline, virtual] |
The default implementation delegates calculation to upper functional units, modifying the result to include the size of the provided Command.
Reimplemented from wns::ldk::CommandTypeSpecifier< COMMANDTYPE >.
| Bit wns::ldk::sar::SAR< COMMANDTYPE >::getCommandSize | ( | ) | const [inline] |
| Bit wns::ldk::sar::SAR< COMMANDTYPE >::getSegmentSize | ( | ) | const [inline] |
| virtual CompoundPtr wns::ldk::sar::SAR< COMMANDTYPE >::getSomethingToSend | ( | ) | [inline, 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.
| virtual bool wns::ldk::sar::SAR< COMMANDTYPE >::hasCapacity | ( | ) | const [inline, virtual] |
While hasCapacity returns false, processIncoming will never be called.
Implements wns::ldk::DelayedInterface.
| virtual const CompoundPtr wns::ldk::sar::SAR< COMMANDTYPE >::hasSomethingToSend | ( | ) | const [inline, virtual] |
| virtual bool wns::ldk::sar::SAR< COMMANDTYPE >::onSuspend | ( | ) | const [inline, private, virtual] |
| virtual void wns::ldk::sar::SAR< COMMANDTYPE >::prepareSegment | ( | ) | [inline, protected, virtual] |
| virtual void wns::ldk::sar::SAR< COMMANDTYPE >::processOutgoing | ( | const CompoundPtr & | ) | [inline, virtual] |
Override this method to handle outgoing compounds.
Implements wns::ldk::DelayedInterface.
| void wns::ldk::sar::SAR< COMMANDTYPE >::setSegmentSize | ( | const Bit | size | ) | [inline] |
CompoundPtr wns::ldk::sar::SAR< COMMANDTYPE >::backupCompound [protected] |
int wns::ldk::sar::SAR< COMMANDTYPE >::fragmentNumber [protected] |
Reimplemented in wns::ldk::sar::Fixed, and wns::ldk::sar::Soft.
Bit wns::ldk::sar::SAR< COMMANDTYPE >::headerSize [protected] |
logger::Logger wns::ldk::sar::SAR< COMMANDTYPE >::logger [protected] |
Bit wns::ldk::sar::SAR< COMMANDTYPE >::nextPos [protected] |
CompoundPtr wns::ldk::sar::SAR< COMMANDTYPE >::nextSegment [protected] |
Bit wns::ldk::sar::SAR< COMMANDTYPE >::oldPCISize [protected] |
Bit wns::ldk::sar::SAR< COMMANDTYPE >::oldSDUSize [protected] |
CompoundPtr wns::ldk::sar::SAR< COMMANDTYPE >::outgoing [protected] |
bool wns::ldk::sar::SAR< COMMANDTYPE >::preserving [protected] |
Bit wns::ldk::sar::SAR< COMMANDTYPE >::segmentSize [protected] |
Bit wns::ldk::sar::SAR< COMMANDTYPE >::totalSize [protected] |
1.5.5