![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /****************************************************************************** 00002 * WiFiMac * 00003 * This file is part of openWNS (open Wireless Network Simulator) 00004 * _____________________________________________________________________________ 00005 * 00006 * Copyright (C) 2004-2007 00007 * Chair of Communication Networks (ComNets) 00008 * Kopernikusstr. 16, D-52074 Aachen, Germany 00009 * phone: ++49-241-80-27910, 00010 * fax: ++49-241-80-22242 00011 * email: info@openwns.org 00012 * www: http://www.openwns.org 00013 * _____________________________________________________________________________ 00014 * 00015 * openWNS is free software; you can redistribute it and/or modify it under the 00016 * terms of the GNU Lesser General Public License version 2 as published by the 00017 * Free Software Foundation; 00018 * 00019 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00020 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00021 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00022 * details. 00023 * 00024 * You should have received a copy of the GNU Lesser General Public License 00025 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00026 * 00027 ******************************************************************************/ 00028 00029 #ifndef WIFIMAC_LOWERMAC_RATEADAPTATIONSTRATEGIES_CONSTANT_HPP 00030 #define WIFIMAC_LOWERMAC_RATEADAPTATIONSTRATEGIES_CONSTANT_HPP 00031 00032 #include <WIFIMAC/lowerMAC/rateAdaptationStrategies/IRateAdaptationStrategy.hpp> 00033 #include <WIFIMAC/convergence/PhyUser.hpp> 00034 #include <WIFIMAC/convergence/PhyMode.hpp> 00035 #include <WIFIMAC/lowerMAC/Manager.hpp> 00036 00037 #include <WNS/service/dll/Address.hpp> 00038 00039 namespace wifimac { namespace lowerMAC { namespace rateAdaptationStrategies { 00040 00044 class Constant : 00045 public IRateAdaptationStrategy 00046 { 00047 public: 00048 Constant( 00049 const wns::pyconfig::View& config_, 00050 wns::service::dll::UnicastAddress receiver_, 00051 wifimac::management::PERInformationBase*, 00052 wifimac::management::SINRInformationBase*, 00053 wifimac::lowerMAC::Manager*, 00054 wifimac::convergence::PhyUser*, 00055 wns::logger::Logger*); 00056 00057 00058 wifimac::convergence::PhyMode 00059 getPhyMode(size_t numTransmissions) const; 00060 00061 wifimac::convergence::PhyMode 00062 getPhyMode(size_t numTransmissions, 00063 const wns::Ratio lqm) const; 00064 00065 void 00066 setCurrentPhyMode(wifimac::convergence::PhyMode pm); 00067 00068 private: 00069 const wifimac::convergence::PhyMode myPM; 00070 00071 struct Friends 00072 { 00073 wifimac::convergence::PhyUser* phyUser; 00074 } friends; 00075 }; 00076 }}} 00077 #endif // #ifndef WIFIMAC_LOWERMAC_RATEADAPTIONSTRATEGIES_CONSTANT_HPP
1.5.5