User Manual, Developers Guide and API Documentation

wns::scheduler::strategy::staticpriority::RoundRobin Class Reference

Round Robin subscheduler.

#include <scheduler/strategy/staticpriority/RoundRobin.hpp>

Inheritance diagram for wns::scheduler::strategy::staticpriority::RoundRobin:

Inheritance graph
[legend]
Collaboration diagram for wns::scheduler::strategy::staticpriority::RoundRobin:

Collaboration graph
[legend]

List of all members.

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 &currentConnections, ConnectionID cid) const
 gives the next cid to schedule
virtual
wns::scheduler::ConnectionID 
getValidCurrentConnection (const ConnectionSet &currentConnections, 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


Detailed Description

Definition at line 45 of file RoundRobin.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

wns::scheduler::MapInfoCollectionPtr RoundRobin::doStartSubScheduling ( SchedulerStatePtr  schedulerState,
wns::scheduler::SchedulingMapPtr  schedulingMap 
) [virtual]

Parameters:
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]


Member Data Documentation

Definition at line 72 of file RoundRobin.hpp.

Definition at line 69 of file RoundRobin.hpp.


The documentation for this class was generated from the following files:

Generated on Sun May 27 03:33:05 2012 for openWNS by  doxygen 1.5.5