User Manual, Developers Guide and API Documentation

wns::scheduler::strategy::dsastrategy::Fixed Class Reference

DSA startegy equally distributing available resources between users. If there are n resources and m users: m1 = n mod m users get floor(n/m) + 1 resources, m - m1 users get floor(n/m) resources. The resources are then granted to a user by first increasing the subChannel number, then the timeSlot, then the spatialLayer. TODO: Make it configurable in which order time, frequency and space domain are used for resource sorting.

#include <scheduler/strategy/dsastrategy/Fixed.hpp>

Inheritance diagram for wns::scheduler::strategy::dsastrategy::Fixed:

Inheritance graph
[legend]
Collaboration diagram for wns::scheduler::strategy::dsastrategy::Fixed:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Fixed (const wns::pyconfig::View &config)
virtual DSAResult getSubChannelWithDSA (RequestForResource &request, SchedulerStatePtr schedulerState, SchedulingMapPtr schedulingMap)
 determine subChannel for request. This is only a suggestion. The allocation/fixation is done outside.
virtual void initialize (SchedulerStatePtr schedulerState, SchedulingMapPtr schedulingMap)
 call this before each timeSlot/frame. Important to reset starting values.
bool requiresCQI () const
 true if the strategy must have CQI information. E.g. for getBestSubChannel based on CQI
 ~Fixed ()

Private Attributes

std::map< unsigned int, intresAmount_
std::map< unsigned int,
std::set< DSAResult >
::iterator > 
resStart_
std::set< DSAResult, FreqFirstsortedResources_
std::map< unsigned int, intspatialLayer_


Detailed Description

Definition at line 52 of file Fixed.hpp.


Constructor & Destructor Documentation

Fixed::Fixed ( const wns::pyconfig::View config  ) 

Definition at line 62 of file Fixed.cpp.

Fixed::~Fixed (  ) 

Definition at line 67 of file Fixed.cpp.


Member Function Documentation

DSAResult Fixed::getSubChannelWithDSA ( RequestForResource request,
SchedulerStatePtr  schedulerState,
SchedulingMapPtr  schedulingMap 
) [virtual]

void Fixed::initialize ( SchedulerStatePtr  schedulerState,
SchedulingMapPtr  schedulingMap 
) [virtual]

Reimplemented from wns::scheduler::strategy::dsastrategy::DSAStrategy.

Definition at line 73 of file Fixed.cpp.

bool wns::scheduler::strategy::dsastrategy::Fixed::requiresCQI (  )  const [inline, virtual]


Member Data Documentation

Definition at line 71 of file Fixed.hpp.

std::map<unsigned int, std::set<DSAResult>::iterator > wns::scheduler::strategy::dsastrategy::Fixed::resStart_ [private]

Definition at line 70 of file Fixed.hpp.

Definition at line 67 of file Fixed.hpp.

Definition at line 72 of file Fixed.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