User Manual, Developers Guide and API Documentation

OFDMAMeasurement.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 // #include <OFDMAPHY/OFDMAMeasurement.hpp>
00028 
00029 #ifndef WNS_OFDMAPHY_MEASUREMENT_HPP
00030 #define WNS_OFDMAPHY_MEASUREMENT_HPP
00031 
00032 #include <WNS/service/phy/power/OFDMAMeasurement.hpp>
00033 #include <RISE/scenario/ftfading/FTFading.hpp>
00034 
00035 
00036 namespace ofdmaphy {
00037 
00042     class OFDMAMeasurement:
00043         public wns::service::phy::power::OFDMAMeasurement, // Interface
00044         public wns::Cloneable<ofdmaphy::OFDMAMeasurement> // allow SmartPtr
00045     {
00046     public:
00047         OFDMAMeasurement(wns::node::Interface* _source,
00048                          int _numberOfSubChannels,
00049                          simTimeType _timeOfValidity,
00050                          wns::Ratio _quasiStaticPathLoss,
00051                          rise::scenario::ftfading::FTFading* _ftfading,
00052                          std::vector<wns::Power> _interferenceVector,
00053                          wns::logger::Logger& _logger
00054                          );
00055         virtual ~OFDMAMeasurement();
00057         /* timeOffset=+1 means look into the future for one frame (samplingTime) */
00058         virtual const wns::Ratio getPathLoss(int subChannel) const;
00060         //virtual const wns::Ratio getPathLossInFuture(int subChannel, int samplingTimeOffset=0) const = 0;
00062         virtual const std::vector<wns::Ratio> getPathLoss() const;
00066         //virtual const std::vector<wns::Ratio> getPathLossInFuture(int samplingTimeOffset) const;
00068         virtual const wns::Power getInterferencePlusNoise(int subChannel) const;
00070         virtual const std::vector<wns::Power>& getInterferencePlusNoise() const;
00071         // something to specify the origin (source node, transmitter)
00072         virtual wns::node::Interface* getSourceNode() const;
00074         virtual const int getNumberOfSubChannels() const { return numberOfSubChannels; };
00075         virtual const simTimeType getMeasurementTime() const { return timestamp; };
00077         virtual const bool isUpToDate() const;
00079         virtual std::string getString() const;
00080     private:
00083         wns::node::Interface* source;
00086         int numberOfSubChannels;
00087         simTimeType timestamp;
00088         simTimeType timeOfValidity;
00089         wns::Ratio  quasiStaticPathLoss;
00090         rise::scenario::ftfading::FTFading* ftfading;
00091         std::vector<wns::Power> interferencePlusNoise;
00092         wns::logger::Logger& logger; // same logger as OFDMA
00093     };
00095     inline std::ostream&
00096     operator<< (std::ostream& s, const OFDMAMeasurement& m) {
00097         return s << m.getString();
00098     }
00101     typedef wns::SmartPtr<const ofdmaphy::OFDMAMeasurement> OFDMAPHYMeasurementPtr;
00103     typedef const ofdmaphy::OFDMAMeasurement& OFDMAPHYMeasurementConstRef;
00104 
00105 } // ofdmaphy
00106 #endif // WNS_SERVICE_PHY_OFDMA_MEASUREMENT_HPP
00107 
00108 
00109 
00110 
00111 

Generated on Sun May 27 03:31:54 2012 for openWNS by  doxygen 1.5.5