User Manual, Developers Guide and API Documentation

FastLinkFeedback.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 #ifndef WIFIMAC_DRAFTN_FASTLINKFEEDBACK
00029 #define WIFIMAC_DRAFTN_FASTLINKFEEDBACK
00030 
00031 #include <WIFIMAC/lowerMAC/Manager.hpp>
00032 #include <WIFIMAC/convergence/PhyUser.hpp>
00033 #include <WIFIMAC/draftn/SINRwithMIMOInformationBase.hpp>
00034 
00035 #include <WNS/ldk/fu/Plain.hpp>
00036 #include <WNS/ldk/Processor.hpp>
00037 
00038 #include <WNS/pyconfig/View.hpp>
00039 #include <WNS/logger/Logger.hpp>
00040 
00041 namespace wifimac { namespace draftn {
00042 
00043     class FastLinkFeedbackCommand:
00044         public wns::ldk::Command
00045     {
00046     public:
00047         struct {} local;
00048         struct {
00049             bool isRequest;
00050             wns::Ratio cqi;
00051             std::vector< std::vector<wns::Ratio> > mimoFactors;
00052         } peer;
00053         struct {} magic;
00054     };
00055 
00059     class FastLinkFeedback:
00060         public wns::ldk::fu::Plain<FastLinkFeedback, FastLinkFeedbackCommand>,
00061         public wns::ldk::Processor<FastLinkFeedback>
00062     {
00063     public:
00064         FastLinkFeedback(wns::ldk::fun::FUN* fun, const wns::pyconfig::View& config);
00065         ~FastLinkFeedback();
00066 
00067     private:
00068         void
00069         onFUNCreated();
00070 
00072         void processIncoming(const wns::ldk::CompoundPtr& compound);
00073         void processOutgoing(const wns::ldk::CompoundPtr& compound);
00074 
00075         const std::string managerName;
00076         const std::string phyUserCommandName;
00077         const std::string sinrMIBServiceName;
00078         const wns::simulator::Time estimatedValidity;
00079 
00080         wns::service::dll::UnicastAddress currentPeer;
00081 
00082         struct Friends
00083         {
00084             wifimac::lowerMAC::Manager* manager;
00085         } friends;
00086 
00087         wifimac::draftn::SINRwithMIMOInformationBase* sinrMIB;
00088 
00089         wns::logger::Logger logger;
00090 
00091     }; // FastLinkFeedback
00092 } // draftn
00093 } // wifimac
00094 
00095 #endif

Generated on Thu May 24 03:32:06 2012 for openWNS by  doxygen 1.5.5