User Manual, Developers Guide and API Documentation

RegistryProxyInterface.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_REGISTRYPROXYINTERFACE_HPP
00029 #define WNS_SCHEDULER_REGISTRYPROXYINTERFACE_HPP
00030 
00031 #include <WNS/service/dll/Address.hpp>
00032 #include <WNS/service/phy/phymode/PhyModeInterface.hpp>
00033 #include <WNS/service/phy/phymode/PhyModeMapperInterface.hpp>
00034 //#include <WNS/scheduler/strategy/apcstrategy/APCStrategyInterface.hpp>
00035 //#include <WNS/scheduler/strategy/dsastrategy/DSAStrategyInterface.hpp>
00036 #include <WNS/scheduler/SchedulingMap.hpp>
00037 #include <WNS/scheduler/SchedulerTypes.hpp>
00038 #include <WNS/ldk/Classifier.hpp>
00039 #include <WNS/PowerRatio.hpp>
00040 #include <string>
00041 
00042 namespace wns { namespace scheduler {
00043         namespace apcstrategy {
00044             class APCStrategyInterface;
00045         }
00046         namespace dsastrategy {
00047             class DSAStrategyInterface;
00048         }
00049     }}
00050 
00051 namespace wns { namespace scheduler {
00052 
00059         class RegistryProxyInterface {
00060         public:
00061             virtual ~RegistryProxyInterface() {};
00069             virtual UserID getUserForCID(ConnectionID cid) = 0;
00071             virtual wns::service::dll::UnicastAddress
00072             getPeerAddressForCID(wns::scheduler::ConnectionID cid) = 0;
00083             virtual ConnectionVector getConnectionsForUser(const UserID user) = 0;
00088             virtual ConnectionID getCIDforPDU(const wns::ldk::CompoundPtr& compound) = 0;
00098             virtual void setFriends(const wns::ldk::CommandTypeSpecifierInterface* _classifier) = 0;
00104             virtual void setFUN(const wns::ldk::fun::FUN* fun) = 0;
00109             virtual std::string getNameForUser(const UserID user) = 0;
00110 
00115             virtual wns::service::phy::phymode::PhyModeMapperInterface*
00116             getPhyModeMapper() const = 0;
00117 
00121             //virtual wns::SmartPtr<const wns::service::phy::phymode::PhyModeInterface>
00122             virtual wns::service::phy::phymode::PhyModeInterfacePtr
00123             getBestPhyMode(const wns::Ratio&) = 0;
00124 
00128             virtual UserID getMyUserID() = 0;
00141             virtual ChannelQualityOnOneSubChannel estimateTxSINRAt(const UserID user, int slot = 0) = 0;
00142             virtual ChannelQualityOnOneSubChannel estimateRxSINROf(const UserID user, int slot = 0) = 0;
00143             virtual wns::Power estimateInterferenceStdDeviation(const UserID user) = 0;
00145             virtual Bits getQueueSizeLimitPerConnection() = 0;
00146 
00151             virtual wns::service::dll::StationType
00152             getStationType(const wns::scheduler::UserID user) = 0;
00153 
00160             virtual UserSet filterReachable(UserSet users) = 0;
00161 
00166             virtual UserSet filterReachable(UserSet users, const int frameNr) = 0;
00167 
00172             virtual wns::scheduler::ConnectionSet
00173             filterReachable(wns::scheduler::ConnectionSet connections, const int frameNr, bool usesHARQ) = 0;
00174 
00177             virtual ChannelQualitiesOnAllSubBandsPtr getChannelQualities4UserOnUplink(UserID user, int frameNr) = 0;
00178             virtual ChannelQualitiesOnAllSubBandsPtr getChannelQualities4UserOnDownlink(UserID user, int frameNr) = 0;
00179 
00180 
00187             virtual wns::scheduler::PowerMap
00188             calcULResources(const wns::scheduler::UserSet&, unsigned long int) const = 0;
00189 
00190             virtual wns::scheduler::UserSet
00191             getActiveULUsers() const = 0;
00192 
00194             virtual int
00195             getTotalNumberOfUsers(const wns::scheduler::UserID user) = 0;
00196 
00198             virtual wns::scheduler::PowerCapabilities
00199             getPowerCapabilities(const UserID user) const = 0;
00200 
00202             virtual wns::scheduler::PowerCapabilities
00203             getPowerCapabilities() const = 0;
00204 
00207             virtual int
00208             getNumberOfPriorities() = 0;
00209 
00211             virtual void
00212             registerCID(wns::scheduler::ConnectionID cid, wns::scheduler::UserID userID/*nextHop!*/) = 0;
00213 
00215             virtual void
00216             deregisterCID(wns::scheduler::ConnectionID cid, const wns::scheduler::UserID userID) = 0;
00217 
00219             virtual void
00220             deregisterUser(const wns::scheduler::UserID userID) = 0;
00221 
00223             virtual ConnectionList&
00224             getCIDListForPriority(int priority) = 0;
00225 
00227             virtual wns::scheduler::ConnectionSet
00228             getConnectionsForPriority(int priority) = 0;
00229 
00231             virtual int
00232             getPriorityForConnection(wns::scheduler::ConnectionID cid) = 0;
00233 
00235             virtual bool
00236             getDL() const = 0;
00237 
00240             virtual bool
00241             getCQIAvailable() const = 0;
00242         };
00243 
00244         typedef wns::ldk::FUNConfigCreator<RegistryProxyInterface> RegistryCreator;
00245         typedef wns::StaticFactory<RegistryCreator> RegistryFactory;
00246 
00247     }} // namespace wns::scheduler
00248 #endif // WNS_SCHEDULER_REGISTRYPROXYINTERFACE_HPP
00249 

Generated on Fri May 25 03:31:54 2012 for openWNS by  doxygen 1.5.5