User Manual, Developers Guide and API Documentation

PathlossChooser.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 #ifndef _RISE_SCENARIO_PATHLOSS_PATHLOSSCHOOSER_HPP
00028 #define _RISE_SCENARIO_PATHLOSS_PATHLOSSCHOOSER_HPP
00029 
00030 
00031 #include <RISE/scenario/pathloss/DistanceDependent.hpp>
00032 #include <RISE/scenario/pathloss/Pathloss.hpp>
00033 #include <RISE/scenario/pathloss/defs.hpp>
00034 #include <RISE/antenna/Antenna.hpp>
00035 
00036 #include <WNS/distribution/Uniform.hpp>
00037 #include <WNS/pyconfig/View.hpp>
00038 #include <WNS/PowerRatio.hpp>
00039 #include <WNS/container/RangeMap.hpp>
00040 #include <WNS/Types.hpp>
00041 #include <string>
00042 
00043 #include <WNS/probe/bus/ProbeBus.hpp>
00044 #include <WNS/probe/bus/ProbeBusRegistry.hpp>
00045 #include <WNS/probe/bus/ContextCollector.hpp>
00046 
00047 namespace rise { namespace scenario { namespace pathloss {
00052     class PathlossChooser :
00053     public DistanceDependent
00054     {
00055     public:
00056         std::string plModelName;
00057         PathlossChooser(const wns::pyconfig::View& config);
00058         bool Distribution(const wns::Distance& distance) const;
00059 
00060     protected:
00061 
00062         virtual wns::Ratio calculatePathloss(const antenna::Antenna& source,
00063                          const antenna::Antenna& target,
00064                          const wns::Frequency& frequency,
00065                          const wns::Distance& distance) const;
00066 
00067     private:
00068         wns::logger::Logger logger;
00069         mutable wns::distribution::Uniform* decisionDistribution;
00070         Pathloss* plLOS;
00071         Pathloss* plNLOS;
00072         mutable bool pathLossModelLos;
00073         mutable bool notYetDecided;
00074         mutable double usedDistance;
00075         wns::probe::bus::ContextCollector losProbability;
00076         wns::probe::bus::ContextCollector losDecision;
00077         
00078     };
00079 }}} 
00080 
00081 #endif // NOT defined _RISE_SCENARIO_PATHLOSS_PATHLOSSCHOOSER_HPP

Generated on Fri May 25 03:31:58 2012 for openWNS by  doxygen 1.5.5