![]() |
User Manual, Developers Guide and API Documentation |
![]() |
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 <WNS/service/phy/power/OFDMAMeasurement.hpp> 00028 00029 #ifndef WNS_SERVICE_PHY_OFDMA_MEASUREMENT_HPP 00030 #define WNS_SERVICE_PHY_OFDMA_MEASUREMENT_HPP 00031 00032 #include <WNS/node/Interface.hpp> 00033 #include <WNS/PowerRatio.hpp> 00034 #include <WNS/service/phy/phymode/PhyModeInterface.hpp> 00035 #include <WNS/PythonicOutput.hpp> 00036 #include <WNS/RefCountable.hpp> 00037 #include <WNS/Cloneable.hpp> 00038 #include <WNS/SmartPtr.hpp> 00039 00040 namespace wns { namespace service { namespace phy { namespace power { 00041 00046 class OFDMAMeasurement: 00047 public virtual wns::PythonicOutput, // operator<< defined? How? 00048 public virtual wns::RefCountable, 00049 public virtual wns::CloneableInterface 00050 { 00051 public: 00052 virtual ~OFDMAMeasurement() {} 00053 // promised interfaces 00054 // various ways to get the information 00056 virtual const wns::Ratio getPathLoss(int subChannel) const = 0; 00058 //virtual const wns::Ratio getPathLossInFuture(int subChannel, int samplingTimeOffset=0) const = 0; 00060 virtual const std::vector<wns::Ratio> getPathLoss() const = 0; 00064 //virtual const std::vector<wns::Ratio> getPathLossInFuture(int samplingTimeOffset=0) const = 0; 00066 virtual const wns::Power getInterferencePlusNoise(int subChannel) const = 0; 00068 virtual const std::vector<wns::Power>& getInterferencePlusNoise() const = 0; 00069 00071 virtual wns::node::Interface* getSourceNode() const = 0; 00072 // on layer2 you can translate this to the MAC address: 00073 // stationManager = fun->getLayer<dll::ILayer2*>()->getStationManager(); 00074 // wns::service::dll::UnicastAddress source = stationManager->getStationByNode(source)->getDLLAddress(); 00075 00077 virtual const int getNumberOfSubChannels() const = 0; 00079 virtual const simTimeType getMeasurementTime() const = 0; 00081 virtual const bool isUpToDate() const = 0; 00083 virtual std::string getString() const = 0; 00084 }; 00087 typedef wns::SmartPtr<const wns::service::phy::power::OFDMAMeasurement> OFDMAMeasurementPtr; 00089 typedef const wns::service::phy::power::OFDMAMeasurement& OFDMAMeasurementConstRef; 00090 00092 inline std::ostream& 00093 operator<< (std::ostream& s, const wns::service::phy::power::OFDMAMeasurement& p) { 00094 return s << p.getString(); 00095 } 00096 00097 } // power 00098 } // phy 00099 } // service 00100 } // wns 00101 #endif // WNS_SERVICE_PHY_OFDMA_MEASUREMENT_HPP 00102 00103 00104
1.5.5