User Manual, Developers Guide and API Documentation

APCStrategy.cpp

Go to the documentation of this file.
00001 /*******************************************************************************
00002  * This file is part of openWNS (open Wireless Network Simulator)
00003  * _____________________________________________________________________________
00004  *
00005  * Copyright (C) 2004-2009
00006  * Chair of Communication Networks (ComNets)
00007  * Kopernikusstr. 5, D-52074 Aachen, Germany
00008  * phone: ++49-241-80-27910,
00009  * fax: ++49-241-80-22242
00010  * email: info@openwns.org
00011  * www: http://www.openwns.org
00012  * _____________________________________________________________________________
00013  *
00014  * openWNS is free software; you can redistribute it and/or modify it under the
00015  * terms of the GNU Lesser General Public License version 2 as published by the
00016  * Free Software Foundation;
00017  *
00018  * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY
00019  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
00020  * A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00021  * details.
00022  *
00023  * You should have received a copy of the GNU Lesser General Public License
00024  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00025  *
00026  ******************************************************************************/
00027 
00028 #include <WNS/scheduler/strategy/apcstrategy/APCStrategy.hpp>
00029 #include <WNS/scheduler/strategy/StrategyInterface.hpp>
00030 #include <vector>
00031 #include <string>
00032 
00033 using namespace wns::scheduler;
00034 using namespace wns::scheduler::strategy;
00035 using namespace wns::scheduler::strategy::apcstrategy;
00036 
00037 
00038 APCStrategy::APCStrategy(const wns::pyconfig::View& config)
00039     : logger(config.get("logger")),
00040       phyModeMapper(NULL),
00041       //maxSummedPowerOnAllChannels(),
00042       //maxPowerPerSubChannel(),
00043       //nominalPowerPerSubChannel(),
00044       apcstrategyName(config.get<std::string>("nameInAPCStrategyFactory"))
00045 {
00046     MESSAGE_SINGLE(NORMAL, logger,"APCStrategy="<<apcstrategyName);
00047 }
00048 
00049 APCStrategy::~APCStrategy()
00050 {
00051 }
00052 
00053 void
00054 APCStrategy::setColleagues(RegistryProxyInterface* _registry)
00055 {
00056     colleagues.registry = _registry;
00057     assure(colleagues.registry!=NULL,"need colleagues.registry");
00058     phyModeMapper = _registry->getPhyModeMapper();
00059 }
00060 
00061 // called before each timeSlot/frame
00062 void
00063 APCStrategy::initialize(SchedulerStatePtr schedulerState,
00064             SchedulingMapPtr schedulingMap)
00065 {
00066     assure(colleagues.registry!=NULL,"need colleagues.registry");
00067     assure(phyModeMapper!=NULL,"need phyModeMapper");
00068     assure(schedulerState->strategy!=NULL,"need strategy");
00069     MESSAGE_SINGLE(NORMAL, logger, "APCStrategy::initialize("<<apcstrategyName<<")");
00070 } // initialize
00071 
00072 void
00073 APCStrategy::postProcess(SchedulerStatePtr schedulerState,
00074              SchedulingMapPtr schedulingMap)
00075 {
00076 } // postProcess
00077 
00078 
00079 /*
00080   Local Variables:
00081   mode: c++
00082   fill-column: 80
00083   c-basic-offset: 8
00084   c-comment-only-line-offset: 0
00085   c-tab-always-indent: t
00086   indent-tabs-mode: t
00087   tab-width: 8
00088   End:
00089 */

Generated on Mon May 21 03:31:56 2012 for openWNS by  doxygen 1.5.5