User Manual, Developers Guide and API Documentation

rise::scenario::pathloss::MultiSlope Class Reference

User defined one slope pathloss. More...

#include <scenario/pathloss/MultiSlope.hpp>

Inheritance diagram for rise::scenario::pathloss::MultiSlope:

Inheritance graph
[legend]
Collaboration diagram for rise::scenario::pathloss::MultiSlope:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual wns::Ratio calculatePathloss (const antenna::Antenna &source, const antenna::Antenna &target, const wns::Frequency &frequency, const wns::Distance &distance) const
 Pathloss calculation function for models dependent on the distance of source and target.
 MultiSlope (const wns::pyconfig::View &config)
virtual ~MultiSlope ()

Private Attributes

PathlossoutOfMaxRange
PathlossoutOfMinRange
std::list< Pathloss * > slopes


Detailed Description

This class implements following formula:

pl = offset + distFactor * log10(distance * distNormFactor) + freqFactor * log10(frequency)

As in all Pathloss-models, minPathloss is guaranteed, so the returned value is max(minPathloss, pl).

offset, distFactor and freqFactor are configurable via pyconfig::Parser, distNormFactor is 1, if distanceUnit was set to "m", 1/1000, if it was "km".

You have to provide sensible values for validDistances and validFrequencies in your configuration. You can use whichever Pathloss model you like as out of range strategy (e.g. Constant, Deny, FreeSpace, another MultiSlope), but keep in mind that the pathloss will be discontinuous at the validDistances borders, if set up improperly.

Pathloss.py contains two example configurations, one sets up the Umts3003Outdoor model that was used in SGOOSE, the other sets up a free space model.

Definition at line 62 of file MultiSlope.hpp.


Constructor & Destructor Documentation

MultiSlope::MultiSlope ( const wns::pyconfig::View config  ) 

Definition at line 43 of file MultiSlope.cpp.

MultiSlope::~MultiSlope (  )  [virtual]

Definition at line 94 of file MultiSlope.cpp.


Member Function Documentation

wns::Ratio MultiSlope::calculatePathloss ( const antenna::Antenna source,
const antenna::Antenna target,
const wns::Frequency frequency,
const wns::Distance distance 
) const [virtual]

For models not dependent on the distance DistanceIndependent will provide an implementation of this method.

Implements rise::scenario::pathloss::Pathloss.

Definition at line 104 of file MultiSlope.cpp.


Member Data Documentation

Definition at line 77 of file MultiSlope.hpp.

Definition at line 76 of file MultiSlope.hpp.

Definition at line 79 of file MultiSlope.hpp.


The documentation for this class was generated from the following files:

Generated on Sat May 26 03:32:39 2012 for openWNS by  doxygen 1.5.5