MiXiM
2.3
|
Mapping that represents a Pathloss-function. More...
#include <SimplePathlossModel.h>
Public Member Functions | |
SimplePathlossConstMapping (const DimensionSet &dimensions, SimplePathlossModel *model, const double distFactor) | |
initializes the PathlossMapping for the passed dimensions, its model and the distance factor for the signal to attenuate. | |
SimplePathlossConstMapping (const SimplePathlossConstMapping &) | |
Copy constructor. | |
virtual double | getValue (const Argument &pos) const |
Calculates attenuation from the distance factor and the current positions frequency (or the models carrier frequency if we are using using signals without frequency domain. | |
ConstMapping * | constClone () const |
creates a clone of this mapping. This method has to be implemented by every subclass. But most time the implementation will look like the implementation of this method (except of the class name). | |
Protected Attributes | |
const double | distFactor |
The factor dependent on the distance of the transmission. | |
SimplePathlossModel * | model |
Pointer to the model. | |
bool | hasFrequency |
Is the Signal to attenuate defined over frequency? | |
Private Member Functions | |
SimplePathlossConstMapping & | operator= (const SimplePathlossConstMapping &) |
Assignment operator is not allowed. |
Mapping that represents a Pathloss-function.
SimplePathlossConstMapping is subclassed from SimpleConstMapping for convenience. In this simple pathloss implementation, we assume one attenuation value being constant over the signals duration.