User Manual, Developers Guide and API Documentation

StaticPriority.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_STATICPRIORITY_HPP
00029 #define WNS_SCHEDULER_STRATEGY_STATICPRIORITY_HPP
00030 
00031 #include <WNS/scheduler/strategy/staticpriority/SubStrategyInterface.hpp>
00032 #include <WNS/scheduler/strategy/Strategy.hpp>
00033 #include <WNS/scheduler/strategy/SchedulerState.hpp>
00034 #include <WNS/scheduler/SchedulingMap.hpp>
00035 #include <WNS/scheduler/queue/QueueInterface.hpp>
00036 #include <WNS/scheduler/RegistryProxyInterface.hpp>
00037 #include <WNS/scheduler/MapInfoEntry.hpp>
00038 #include <WNS/service/phy/phymode/PhyModeInterface.hpp>
00039 #include <WNS/ldk/Compound.hpp>
00040 #include <WNS/StaticFactory.hpp>
00041 #include <list>
00042 #include <vector>
00043 
00044 namespace wns { namespace scheduler {
00045     class SchedulingMap;
00046 }} // forward declaration
00047 
00048 namespace wns { namespace scheduler { namespace strategy {
00049 
00050     class StaticPriority
00051       : public Strategy,
00052         public DLAspect,
00053         public ULAspect,
00054         public SlaveAspect // can do every purpose
00055     {
00056     public:
00057         StaticPriority(const wns::pyconfig::View& config);
00058 
00059         ~StaticPriority();
00060 
00061         virtual float
00062         getResourceUsage() const;
00063 
00065         virtual bool isNewStrategy() const { return true; }
00066 
00067     private:
00068         virtual void
00069         onColleaguesKnown();
00070 
00071         virtual StrategyResult
00072         doStartScheduling(SchedulerStatePtr schedulerState,
00073                   SchedulingMapPtr schedulingMap);
00074 
00076         int numberOfPriorities;
00078         typedef std::vector<wns::scheduler::strategy::staticpriority::SubStrategyInterface*> SubStrategies;
00080         SubStrategies subStrategies;
00082         float resourceUsage;
00083     };
00084 
00085 } // namespace strategy
00086 } // namespace scheduler
00087 } // namespace wns
00088 #endif
00089 

Generated on Sat May 26 03:31:51 2012 for openWNS by  doxygen 1.5.5