User Manual, Developers Guide and API Documentation

SINRwithMIMO.hpp

Go to the documentation of this file.
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_DRAFTN_RATEADAPTATIONSTRATEGIES_SINRWITHMIMO_HPP
00030 #define WIFIMAC_DRAFTN_RATEADAPTATIONSTRATEGIES_SINRWITHMIMO_HPP
00031 
00032 #include <WIFIMAC/draftn/rateAdaptationStrategies/ARFwithMIMO.hpp>
00033 #include <WIFIMAC/lowerMAC/rateAdaptationStrategies/SINR.hpp>
00034 #include <WIFIMAC/convergence/PhyUser.hpp>
00035 #include <WIFIMAC/convergence/PhyMode.hpp>
00036 #include <WIFIMAC/lowerMAC/Manager.hpp>
00037 
00038 #include <WNS/ldk/Key.hpp>
00039 #include <WNS/distribution/Uniform.hpp>
00040 #include <WNS/logger/Logger.hpp>
00041 
00042 namespace wifimac { namespace draftn { namespace rateAdaptationStrategies {
00043 
00053     class SINRwithMIMO:
00054         public ARFwithMIMO
00055     {
00056     public:
00057         SINRwithMIMO(
00058             const wns::pyconfig::View& _config,
00059             wns::service::dll::UnicastAddress _receiver,
00060             wifimac::management::PERInformationBase* _per,
00061             wifimac::management::SINRInformationBase* _sinr,
00062             wifimac::lowerMAC::Manager* _manager,
00063             wifimac::convergence::PhyUser* _phyUser,
00064             wns::logger::Logger* _logger);
00065 
00066         wifimac::convergence::PhyMode
00067         getPhyMode(size_t numTransmissions) const;
00068 
00069         wifimac::convergence::PhyMode
00070         getPhyMode(size_t numTransmissions,
00071                    const wns::Ratio lqm) const;
00072 
00073         void
00074         setCurrentPhyMode(wifimac::convergence::PhyMode pm);
00075 
00076     private:
00077         struct Friends
00078         {
00079             wifimac::convergence::PhyUser* phyUser;
00080             wifimac::lowerMAC::Manager* manager;
00081         } friends;
00082 
00083         wifimac::draftn::SINRwithMIMOInformationBase* sinr;
00084         wifimac::lowerMAC::rateAdaptationStrategies::SINR singleStreamRA;
00085         const double retransmissionLQMReduction;
00086         const wns::service::dll::UnicastAddress myReceiver;
00087 
00088         wns::logger::Logger* logger;
00089 
00090         unsigned int curSpatialStreams;
00091     };
00092 }}}
00093 
00094 #endif

Generated on Fri May 25 03:32:09 2012 for openWNS by  doxygen 1.5.5