EMANE
1.2.1
|
Reference QueueManager implementation. More...
#include <basicqueuemanager.h>
Public Member Functions | |
BasicQueueManager (NEMId id, PlatformServiceProvider *pPlatformServiceProvider) | |
~BasicQueueManager () | |
void | initialize (Registrar ®istrar) override |
void | configure (const ConfigurationUpdate &update) override |
void | start () override |
void | postStart () override |
void | stop () override |
void | destroy () override throw () |
size_t | enqueue (std::uint8_t u8QueueIndex, DownstreamPacket &&pkt) override |
std::tuple< EMANE::Models::TDMA::MessageComponents, size_t > | dequeue (std::uint8_t u8QueueIndex, size_t length, NEMId destination) override |
QueueInfos | getPacketQueueInfo () const override |
virtual void | processConfiguration (const ConfigurationUpdate &update) |
void | setPacketStatusPublisher (PacketStatusPublisher *pPacketStatusPublisher) |
Protected Attributes | |
NEMId | id_ |
PlatformServiceProvider * | pPlatformService_ |
PacketStatusPublisher * | pPacketStatusPublisher_ |
Reference QueueManager implementation.
Definition at line 49 of file basicqueuemanager.h.
EMANE::Models::TDMA::BasicQueueManager::BasicQueueManager | ( | NEMId | id, |
PlatformServiceProvider * | pPlatformServiceProvider | ||
) |
Definition at line 55 of file basicqueuemanager.cc.
EMANE::Models::TDMA::BasicQueueManager::~BasicQueueManager | ( | ) |
Definition at line 60 of file basicqueuemanager.cc.
|
overridevirtual |
Configure the component.
update | Configuration update values |
ConfigureException | thrown when a unexpected configuration item is encountered or there is a problem with the specified item value |
Implements EMANE::Component.
Definition at line 118 of file basicqueuemanager.cc.
|
overridevirtual |
Dequeues a specified number of bytes from a specified queue.
u8QueueIndex | Queue index of target queue |
length | length to dequeue in bytes |
destination | NEM destination to dequeue, 0 indicates any NEM. |
Implements EMANE::Models::TDMA::QueueManager.
Definition at line 297 of file basicqueuemanager.cc.
|
overridevirtual |
Destroy the component.
Implements EMANE::Component.
Definition at line 255 of file basicqueuemanager.cc.
|
overridevirtual |
Enqueues a packet in to a specified queue.
u8QueueIndex | Queue index of target queue |
pkt | Packet to enqueue |
Implements EMANE::Models::TDMA::QueueManager.
Definition at line 264 of file basicqueuemanager.cc.
|
overridevirtual |
Gets queue status.
Implements EMANE::Models::TDMA::QueueManager.
Definition at line 392 of file basicqueuemanager.cc.
|
overridevirtual |
Initialize the component.
InitializeException | thrown when an error is encountered during initialization |
Implements EMANE::Component.
Definition at line 62 of file basicqueuemanager.cc.
|
overridevirtual |
Hook to run any post start functionaililty. Called after all the components have been started.
Reimplemented from EMANE::Component.
Definition at line 237 of file basicqueuemanager.cc.
|
inlinevirtualinherited |
Process dynamic running-state configuration updates
update | Configuration update |
Reimplemented in EMANE::Models::IEEE80211ABG::MACLayer, EMANE::Models::RFPipe::MACLayer, EMANE::Models::TDMA::BaseModel::Implementation, EMANE::Models::TDMA::BaseModel, EMANE::NEMStatefulLayer, EMANE::NEMQueuedLayer, and EMANE::FrameworkPHY.
Definition at line 63 of file runningstatemutable.h.
|
inlineinherited |
Sets the PacketStatusPublisher
pPacketStatusPublisher | PacketStatusPublisher reference |
Definition at line 64 of file packetstatuspublisheruser.h.
|
overridevirtual |
Start the component.
StartException | thrown when an error is encountered during start. |
Implements EMANE::Component.
Definition at line 228 of file basicqueuemanager.cc.
|
overridevirtual |
Stop the component.
StopException | thrown when an error is encountered during stop |
Implements EMANE::Component.
Definition at line 246 of file basicqueuemanager.cc.
|
protectedinherited |
Definition at line 115 of file queuemanager.h.
|
protectedinherited |
Definition at line 70 of file packetstatuspublisheruser.h.
|
protectedinherited |
Definition at line 64 of file platformserviceuser.h.