![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <scheduler/strategy/staticpriority/RoundRobin.hpp>


Public Member Functions | |
| virtual wns::scheduler::MapInfoCollectionPtr | doStartSubScheduling (SchedulerStatePtr schedulerState, wns::scheduler::SchedulingMapPtr schedulingMap) |
| The main work is done here. Called by StaticPriority master scheduler. | |
| virtual wns::scheduler::ConnectionID | getNextConnection (const ConnectionSet ¤tConnections, ConnectionID cid) const |
| gives the next cid to schedule | |
| virtual wns::scheduler::ConnectionID | getValidCurrentConnection (const ConnectionSet ¤tConnections, ConnectionID cid) const |
| gives the current cid or the next one, if it doesn't exist anymore | |
| virtual void | initialize () |
| this method is used to initialize datastructures. Please overload/implement this for your derived class | |
| RoundRobin (const wns::pyconfig::View &config) | |
| ~RoundRobin () | |
Protected Attributes | |
| int | blockSize |
| Number of packets to schedule of the same cid before proceeding to the next one. (PyConfig parameter). | |
| wns::scheduler::ConnectionID | lastScheduledConnection |
| keep state of RR pointer | |
Definition at line 45 of file RoundRobin.hpp.
| RoundRobin::RoundRobin | ( | const wns::pyconfig::View & | config | ) |
Definition at line 47 of file RoundRobin.cpp.
| RoundRobin::~RoundRobin | ( | ) |
Definition at line 56 of file RoundRobin.cpp.
| wns::scheduler::MapInfoCollectionPtr RoundRobin::doStartSubScheduling | ( | SchedulerStatePtr | schedulerState, | |
| wns::scheduler::SchedulingMapPtr | schedulingMap | |||
| ) | [virtual] |
| SchedulerState | contains all the input parameters and current state of the scheduler. | |
| SchedulingMap | contains the (incomplete) result so far and will be updated by this method. |
Implements wns::scheduler::strategy::staticpriority::SubStrategyInterface.
Reimplemented in wns::scheduler::strategy::staticpriority::ExhaustiveRoundRobin.
Definition at line 97 of file RoundRobin.cpp.
| wns::scheduler::ConnectionID RoundRobin::getNextConnection | ( | const ConnectionSet & | currentConnections, | |
| ConnectionID | cid | |||
| ) | const [virtual] |
Definition at line 82 of file RoundRobin.cpp.
| wns::scheduler::ConnectionID RoundRobin::getValidCurrentConnection | ( | const ConnectionSet & | currentConnections, | |
| ConnectionID | cid | |||
| ) | const [virtual] |
Definition at line 68 of file RoundRobin.cpp.
| void RoundRobin::initialize | ( | ) | [virtual] |
Implements wns::scheduler::strategy::staticpriority::SubStrategyInterface.
Reimplemented in wns::scheduler::strategy::staticpriority::ExhaustiveRoundRobin.
Definition at line 61 of file RoundRobin.cpp.
Definition at line 72 of file RoundRobin.hpp.
wns::scheduler::ConnectionID wns::scheduler::strategy::staticpriority::RoundRobin::lastScheduledConnection [protected] |
Definition at line 69 of file RoundRobin.hpp.
1.5.5