INET Framework for OMNeT++/OMNEST
|
Two-Ray interference model borrowed from Veins (default parameterization) More...
#include <TwoRayInterference.h>
Public Member Functions | |
TwoRayInterference () | |
void | initialize (int stage) override |
double | computePathLoss (const ITransmission *, const IArrival *) const override |
Returns the loss factor for the provided transmission and arrival. More... | |
double | computePathLoss (mps propagation, Hz frequency, m distance) const override |
Returns the loss factor as a function of propagation speed, carrier frequency and distance. More... | |
m | computeRange (mps propagation, Hz frequency, double loss) const override |
Returns the range for the given loss factor. More... | |
std::ostream & | printToStream (std::ostream &, int level) const override |
Prints this object to the provided output stream. More... | |
Public Member Functions inherited from inet::physicallayer::IPrintableObject | |
virtual | ~IPrintableObject () |
virtual std::string | getInfoStringRepresentation () const |
virtual std::string | getDetailStringRepresentation () const |
virtual std::string | getDebugStringRepresentation () const |
virtual std::string | getTraceStringRepresentation () const |
virtual std::string | getCompleteStringRepresentation () const |
Protected Member Functions | |
virtual double | computeTwoRayInterference (const Coord &posTx, const Coord &posRx, m waveLength) const |
Protected Attributes | |
double | epsilon_r |
Additional Inherited Members | |
Public Types inherited from inet::physicallayer::IPrintableObject | |
enum | PrintLevel { PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO, PRINT_LEVEL_COMPLETE = INT_MIN } |
Two-Ray interference model borrowed from Veins (default parameterization)
See "Using the Right Two-Way Model? A Measurement-based Evaluation of PHY Models in VANETs" by C. Sommer and F. Dressler (2011) or "On the Applicability of Two-Ray Path Loss Models for Vehicular Network Simulation" by C. Sommer, S. Joerer and F. Dressler (2012)
inet::physicallayer::TwoRayInterference::TwoRayInterference | ( | ) |
|
overridevirtual |
Returns the loss factor for the provided transmission and arrival.
The value is in the range [0, 1] where 1 means no loss at all and 0 means all power is lost.
Implements inet::physicallayer::IPathLoss.
|
overridevirtual |
Returns the loss factor as a function of propagation speed, carrier frequency and distance.
The value is in the range [0, 1] where 1 means no loss at all and 0 means all power is lost.
Implements inet::physicallayer::IPathLoss.
|
overridevirtual |
Returns the range for the given loss factor.
The value is in the range [0, +infinity) or NaN if unspecified.
Implements inet::physicallayer::IPathLoss.
|
protectedvirtual |
Referenced by computePathLoss().
|
override |
|
overridevirtual |
Prints this object to the provided output stream.
Function calls to operator<< with pointers or references either const or not are all forwarded to this function.
Reimplemented from inet::physicallayer::IPrintableObject.
|
protected |
Referenced by computeTwoRayInterference(), initialize(), and printToStream().