![]() |
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 00028 #ifndef RISE_SCENARIO_PATHLOSS_ITUPATHLOSS_HPP 00029 #define RISE_SCENARIO_PATHLOSS_ITUPATHLOSS_HPP 00030 00031 #include <RISE/scenario/pathloss/DistanceDependent.hpp> 00032 #include <WNS/probe/bus/ContextCollector.hpp> 00033 #include <RISE/scenario/pathloss/HashRNG.hpp> 00034 00035 namespace rise { namespace scenario { namespace pathloss { 00036 00060 class ITUPathloss: 00061 public rise::scenario::pathloss::DistanceDependent 00062 { 00063 public: 00064 ITUPathloss(const wns::pyconfig::View&); 00065 00066 virtual ~ITUPathloss() {} 00067 00068 virtual wns::Ratio 00069 calculatePathloss(const rise::antenna::Antenna& source, 00070 const rise::antenna::Antenna& target, 00071 const wns::Frequency& frequency, 00072 const wns::Distance& distance) const; 00073 00077 virtual double 00078 getLOSProbability(double distance) const = 0; 00079 00083 virtual wns::Ratio 00084 getLOSPathloss(const rise::antenna::Antenna& source, 00085 const rise::antenna::Antenna& target, 00086 const wns::Frequency& frequency, 00087 const wns::Distance& distance) const = 0; 00088 00092 virtual wns::Ratio 00093 getNLOSPathloss(const rise::antenna::Antenna& source, 00094 const rise::antenna::Antenna& target, 00095 const wns::Frequency& frequency, 00096 const wns::Distance& distance) const = 0; 00097 00101 virtual double 00102 getLOSShadowingStd(const rise::antenna::Antenna& source, 00103 const rise::antenna::Antenna& target, 00104 const wns::Frequency& frequency, 00105 const wns::Distance& distance) const = 0; 00106 00110 virtual double 00111 getNLOSShadowingStd(const rise::antenna::Antenna& source, 00112 const rise::antenna::Antenna& target, 00113 const wns::Frequency& frequency, 00114 const wns::Distance& distance) const = 0; 00115 00116 virtual double 00117 getCarPenetrationStd() const = 0; 00118 00119 virtual double 00120 getCarPenetrationMean() const = 0; 00121 00122 private: 00123 wns::probe::bus::ContextCollector losProbabilityCC_; 00124 wns::probe::bus::ContextCollector shadowingCC_; 00125 bool useShadowing_; 00126 bool useCarPenetration_; 00127 }; 00128 00129 } // pathloss 00130 } // scenario 00131 } // rise 00132 00133 #endif // RISE_SCENARIO_PATHLOSS_ITUPathloss_HPP
1.5.5