![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <scenario/pathloss/MultiSlope.hpp>


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 | |
| Pathloss * | outOfMaxRange |
| Pathloss * | outOfMinRange |
| std::list< Pathloss * > | slopes |
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.
| 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.
| 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.
Definition at line 77 of file MultiSlope.hpp.
Definition at line 76 of file MultiSlope.hpp.
std::list<Pathloss*> rise::scenario::pathloss::MultiSlope::slopes [private] |
Definition at line 79 of file MultiSlope.hpp.
1.5.5