INET Framework for OMNeT++/OMNEST
|
This module implements a Weighted Round Robin Scheduler. More...
#include <WRRScheduler.h>
Public Member Functions | |
WRRScheduler () | |
Public Member Functions inherited from inet::SchedulerBase | |
SchedulerBase () | |
virtual | ~SchedulerBase () |
virtual void | requestPacket () override |
The queue should send a packet whenever this method is invoked. More... | |
virtual int | getNumPendingRequests () override |
Returns number of pending requests. More... | |
virtual bool | isEmpty () override |
Return true when queue is empty, otherwise return false. More... | |
virtual void | clear () override |
Clear all queued packets and stored requests. More... | |
virtual cMessage * | pop () override |
Returns a packet directly from the queue, bypassing the primary, send-on-request mechanism. More... | |
virtual void | packetEnqueued (IPassiveQueue *inputQueue) override |
A packet arrived and it was added to the queue (the queue length increased by one). More... | |
virtual void | addListener (IPassiveQueueListener *listener) override |
Adds a new listener to the listener list. More... | |
virtual void | removeListener (IPassiveQueueListener *listener) override |
Removes a listener from the listener list. More... | |
Public Member Functions inherited from inet::IPassiveQueue | |
virtual | ~IPassiveQueue () |
Public Member Functions inherited from inet::IPassiveQueueListener | |
virtual | ~IPassiveQueueListener () |
Protected Member Functions | |
virtual | ~WRRScheduler () |
virtual void | initialize () override |
virtual bool | schedulePacket () override |
Protected Member Functions inherited from inet::SchedulerBase | |
virtual void | finalize () |
virtual void | handleMessage (cMessage *msg) override |
virtual void | sendOut (cMessage *msg) |
virtual void | notifyListeners () |
Protected Attributes | |
int | numInputs |
int * | weights |
int * | buckets |
Protected Attributes inherited from inet::SchedulerBase | |
int | packetsRequestedFromUs |
int | packetsToBeRequestedFromInputs |
std::vector< IPassiveQueue * > | inputQueues |
cGate * | outGate |
std::list< IPassiveQueueListener * > | listeners |
This module implements a Weighted Round Robin Scheduler.
|
inline |
|
protectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from inet::SchedulerBase.
|
overrideprotectedvirtual |
Implements inet::SchedulerBase.
|
protected |
Referenced by initialize(), schedulePacket(), and ~WRRScheduler().
|
protected |
Referenced by initialize(), and schedulePacket().
|
protected |
Referenced by initialize(), schedulePacket(), and ~WRRScheduler().