User Manual, Developers Guide and API Documentation

wns::scheduler::strategy::dsastrategy::NearbyFirst 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/NearbyFirst.hpp>

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

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

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.
 NearbyFirst (const wns::pyconfig::View &config)
bool requiresCQI () const
 true if the strategy must have CQI information. E.g. for getBestSubChannel based on CQI
 ~NearbyFirst ()

Private Attributes

std::map< double, intresAmount_
std::map< double, std::set
< DSAResult >::iterator > 
resStart_
std::set< DSAResult, FreqFirstsortedResources_


Detailed Description

Definition at line 45 of file NearbyFirst.hpp.


Constructor & Destructor Documentation

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

Definition at line 41 of file NearbyFirst.cpp.

NearbyFirst::~NearbyFirst (  ) 

Definition at line 48 of file NearbyFirst.cpp.


Member Function Documentation

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

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

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

Definition at line 55 of file NearbyFirst.cpp.

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


Member Data Documentation

Definition at line 68 of file NearbyFirst.hpp.

Definition at line 65 of file NearbyFirst.hpp.

Definition at line 60 of file NearbyFirst.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