User Manual, Developers Guide and API Documentation

PowerMeasurement.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 WNS_SERVICE_PHY_POWER_MEASUREMENT_HPP
00029 #define WNS_SERVICE_PHY_POWER_MEASUREMENT_HPP
00030 
00031 #include <WNS/node/Interface.hpp>
00032 #include <WNS/PowerRatio.hpp>
00033 #include <WNS/service/phy/phymode/PhyModeInterface.hpp>
00034 #include <WNS/PythonicOutput.hpp>
00035 #include <WNS/RefCountable.hpp>
00036 #include <WNS/Cloneable.hpp>
00037 #include <WNS/SmartPtr.hpp>
00038 
00039 #include <vector>
00040 
00041 namespace wns { namespace service { namespace phy { namespace power {
00042 
00049     class PowerMeasurementInterface:
00050         public virtual wns::PythonicOutput,
00051         public virtual wns::RefCountable,
00052         public virtual wns::CloneableInterface
00053     {
00054     public:
00055         virtual
00056         ~PowerMeasurementInterface() {};
00057 
00059         virtual const wns::Power
00060         getRxPower() const = 0;
00061 
00063         virtual const wns::Power
00064         getInterferencePower() const = 0; // interference contains noise here
00065 
00067         virtual const wns::Power
00068         getOmniInterferencePower() const = 0;
00069 
00073         virtual const wns::Ratio
00074         getIoT() const = 0;
00075 
00077         virtual const wns::Ratio
00078         getSINR() const = 0;
00079 
00081         virtual const std::vector<wns::Ratio>
00082         getPostProcessingSINRFactor() const = 0;
00083 
00085         virtual const double
00086         getMI()  const = 0;
00087 
00089         virtual const double
00090         getMIB() const = 0;
00091 
00093         virtual const wns::Power
00094         getTxPower() const = 0;
00095 
00097         virtual const wns::Ratio
00098         getPathLoss() const = 0;
00099 
00101         virtual const wns::Ratio
00102         getLoss() const = 0;
00103 
00105         virtual const wns::Ratio
00106         getFading() const = 0;
00107 
00109         virtual const double
00110         getDistance() const = 0;
00111 
00113         virtual const wns::Power
00114         getRSS() const = 0;
00115 
00117         virtual const wns::service::phy::phymode::PhyModeInterfacePtr
00118         getPhyMode() const = 0;
00119 
00121         virtual wns::node::Interface*
00122         getSourceNode() const = 0;
00123 
00125         virtual std::string
00126         getString() const = 0;
00127     };
00128 
00131     typedef wns::SmartPtr<const wns::service::phy::power::PowerMeasurementInterface> PowerMeasurementPtr;
00132 
00134     typedef const wns::service::phy::power::PowerMeasurementInterface& PowerMeasurementConstRef;
00135 
00137     inline std::ostream&
00138     operator<< (std::ostream& s, const wns::service::phy::power::PowerMeasurementInterface& p) {
00139       return s << p.getString();
00140     }
00141 
00142 } // power
00143 } // phy
00144 } // service
00145 } // wns
00146 #endif // WNS_SERVICE_PHY_POWER_MEASUREMENT_HPP
00147 
00148 
00149 

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