User Manual, Developers Guide and API Documentation

ICalculationStrategy.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-2007
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 OFDMAPHY_RECEIVER_MIMO_ICALCULATIONSTRATEGY_HPP
00029 #define OFDMAPHY_RECEIVER_MIMO_ICALCULATIONSTRATEGY_HPP
00030 
00031 #include <WNS/StaticFactory.hpp>
00032 #include <WNS/pyconfig/View.hpp>
00033 #include <WNS/logger/Logger.hpp>
00034 #include <WNS/PowerRatio.hpp>
00035 
00036 #include <RISE/misc/pointer.hpp>
00037 
00038 #include <boost/numeric/ublas/matrix.hpp>
00039 
00040 namespace ofdmaphy { namespace receiver {
00041         class Receiver;
00042 }}
00043 
00044 
00045 namespace ofdmaphy { namespace receiver { namespace mimo {
00046 
00050     class ICalculationStrategy
00051     {
00052 
00053     public:
00054         ICalculationStrategy(const wns::pyconfig::View&,
00055                              Receiver* rx,
00056                              wns::logger::Logger*)
00057             {};
00058 
00059         virtual ~ICalculationStrategy()
00060             {};
00061 
00062         virtual std::vector<wns::Ratio>
00063         getPostProcessingSINRFactor(rise::TransmissionObjectPtr t) = 0;
00064 
00065     };
00066 
00068     template <typename T, typename KIND = T>
00069     class ICalculationStrategyCreator:
00070         public ICalculationStrategyCreator<KIND, KIND>
00071     {
00072     public:
00073         virtual KIND*
00074         create(const wns::pyconfig::View& _config,
00075                Receiver* _rx,
00076                wns::logger::Logger* _logger)
00077             {
00078                 return new T(_config, _rx, _logger);
00079             }
00080     };
00081 
00082     template <typename KIND>
00083     class ICalculationStrategyCreator<KIND, KIND>
00084     {
00085     public:
00086         virtual
00087         ~ICalculationStrategyCreator() {};
00088 
00089         virtual KIND*
00090         create(const wns::pyconfig::View& _config,
00091                Receiver* rx,
00092                wns::logger::Logger* _logger) = 0;
00093     };
00094 
00095     typedef ICalculationStrategyCreator<ICalculationStrategy> CalculationStrategyCreator;
00096     typedef wns::StaticFactory<CalculationStrategyCreator> CalculationStrategyFactory;
00097 
00098 }
00099 }
00100 }
00101 #endif // not defined __RISE_OFDMA_HPP
00102 
00103 
00104 

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