User Manual, Developers Guide and API Documentation

rise::scenario::pathloss::RangeChecked Class Reference

Base class for models, that are composite of simple models at different distances.

#include <scenario/pathloss/RangeChecked.hpp>

Inheritance diagram for rise::scenario::pathloss::RangeChecked:

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

Collaboration graph
[legend]

List of all members.

Protected Member Functions

void addRange (const FrequencyRange &frequencies, const bool &allowed=true)
 Add a frequency range to allow or disallow.
void addRange (const DistanceRange &distances, const Pathloss *model)
 Add a pathloss model for a distance range.
virtual wns::Ratio calculatePathloss (const antenna::Antenna &source, const antenna::Antenna &target, const wns::Frequency &frequency) const
 Pathloss calculation function for models not dependent on the distance of source and target.
const PathlossgetModel (const wns::Distance &distance) const
 return model that's valid at a certain distance
bool knowsDistance (const wns::Distance &distance) const
 Check, if a model for distance was set up.
bool knowsFrequency (const wns::Frequency &frequency) const
 Check, if a frequency was allowed or disallowed.
 RangeChecked (const wns::pyconfig::View &config)

Private Types

typedef
wns::container::RangeMap
< wns::Distance, const
Pathloss * > 
DistanceMap
typedef
wns::container::RangeMap
< wns::Frequency, bool
FrequencyMap

Private Attributes

DistanceMap distanceMap
FrequencyMap frequencyMap


Detailed Description

Definition at line 46 of file RangeChecked.hpp.


Member Typedef Documentation

Definition at line 81 of file RangeChecked.hpp.

Definition at line 80 of file RangeChecked.hpp.


Constructor & Destructor Documentation

RangeChecked::RangeChecked ( const wns::pyconfig::View config  )  [protected]

Definition at line 37 of file RangeChecked.cpp.


Member Function Documentation

void RangeChecked::addRange ( const FrequencyRange frequencies,
const bool allowed = true 
) [protected]

Definition at line 46 of file RangeChecked.cpp.

void RangeChecked::addRange ( const DistanceRange distances,
const Pathloss model 
) [protected]

Definition at line 41 of file RangeChecked.cpp.

wns::Ratio RangeChecked::calculatePathloss ( const antenna::Antenna source,
const antenna::Antenna target,
const wns::Frequency frequency 
) const [protected, virtual]

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

Reimplemented from rise::scenario::pathloss::DistanceDependent.

Reimplemented in rise::scenario::pathloss::MultiModel.

Definition at line 66 of file RangeChecked.cpp.

const Pathloss * RangeChecked::getModel ( const wns::Distance distance  )  const [protected]

Definition at line 61 of file RangeChecked.cpp.

bool RangeChecked::knowsDistance ( const wns::Distance distance  )  const [protected]

Definition at line 51 of file RangeChecked.cpp.

bool RangeChecked::knowsFrequency ( const wns::Frequency frequency  )  const [protected]

Definition at line 56 of file RangeChecked.cpp.


Member Data Documentation

Definition at line 83 of file RangeChecked.hpp.

Definition at line 82 of file RangeChecked.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