User Manual, Developers Guide and API Documentation

APCStrategyInterface.hpp

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 #ifndef WNS_SCHEDULER_STRATEGY_APCSTRATEGY_APCSTRATEGYINTERFACE_HPP
00029 #define WNS_SCHEDULER_STRATEGY_APCSTRATEGY_APCSTRATEGYINTERFACE_HPP
00030 
00031 #include <WNS/StaticFactory.hpp>
00032 #include <WNS/PyConfigViewCreator.hpp>
00033 #include <WNS/scheduler/RegistryProxyInterface.hpp>
00034 #include <WNS/scheduler/SchedulerTypes.hpp>
00035 #include <WNS/scheduler/strategy/SchedulerState.hpp>
00036 #include <vector>
00037 #include <string>
00038 
00039 namespace wns { namespace scheduler { namespace strategy { namespace apcstrategy {
00040     struct APCResult
00041     {
00042         APCResult() {};
00043         ~APCResult() {};
00045         wns::Power txPower;
00047         wns::service::phy::phymode::PhyModeInterfacePtr phyModePtr;
00049         wns::Ratio sinr;
00051         wns::CandI estimatedCandI;
00052     };
00053 
00057     class APCStrategyInterface
00058     {
00059     public:
00060         virtual ~APCStrategyInterface() {};
00061 
00063         virtual void setColleagues(RegistryProxyInterface* _registry) = 0;
00064 
00067         virtual void initialize(SchedulerStatePtr schedulerState,
00068                     SchedulingMapPtr schedulingMap) = 0;
00069 
00072         virtual APCResult
00073         doStartAPC(RequestForResource& request,
00074                SchedulerStatePtr schedulerState,
00075                SchedulingMapPtr schedulingMap) = 0;
00076 
00081         virtual void postProcess(SchedulerStatePtr schedulerState,
00082                      SchedulingMapPtr schedulingMap) = 0;
00083 
00086         virtual bool requiresCQI() const = 0;
00087     };
00088 
00089     typedef wns::PyConfigViewCreator<APCStrategyInterface, APCStrategyInterface> APCStrategyCreator;
00090     typedef wns::StaticFactory<APCStrategyCreator> APCStrategyFactory;
00091 
00092 }}}} // namespace wns::scheduler::strategy::apcstrategy
00093 #endif // WNS_SCHEDULER_APCSTRATEGY_APCSTRATEGYINTERFACE_HPP
00094 
00095 /*
00096   Local Variables:
00097   mode: c++
00098   fill-column: 80
00099   c-basic-offset: 8
00100   c-comment-only-line-offset: 0
00101   c-tab-always-indent: t
00102   indent-tabs-mode: t
00103   tab-width: 8
00104   End:
00105 */

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