INET Framework for OMNeT++/OMNEST
inet::physicallayer::ObstacleLossFunction Class Reference

This mathematical function provides the obstacle loss over frequency based on a straight path from start to end. More...

#include <PowerFunctions.h>

Inheritance diagram for inet::physicallayer::ObstacleLossFunction:
inet::math::FunctionBase< double, Domain< m, m, m, m, m, m, Hz > > inet::math::IFunction< double, Domain< m, m, m, m, m, m, Hz > >

Public Member Functions

 ObstacleLossFunction (const IObstacleLoss *obstacleLoss)
 
virtual double getValue (const Point< m, m, m, m, m, m, Hz > &p) const override
 
virtual void printStructure (std::ostream &os, int level=0) const override
 Prints the internal data structure of this function in a human readable form to the provided stream. More...
 
- Public Member Functions inherited from inet::math::FunctionBase< double, Domain< m, m, m, m, m, m, Hz > >
virtual void partition (const typename Domain< m, m, m, m, m, m, Hz > ::I &i, const std::function< void(const typename Domain< m, m, m, m, m, m, Hz > ::I &, const IFunction< double, Domain< m, m, m, m, m, m, Hz > > *)> callback) const override
 Subdivides the provided domain and calls back f with the subdomains and the corresponding potentially simpler domain limited functions. More...
 
virtual Interval< double > getRange () const override
 Returns the valid range of the function as an interval. More...
 
virtual Interval< double > getRange (const typename Domain< m, m, m, m, m, m, Hz > ::I &i) const override
 Returns the valid range of the function as an interval for the given domain. More...
 
virtual Domain< m, m, m, m, m, m, Hz > ::I getDomain () const override
 Returns the valid domain of the function as an interval. More...
 
virtual bool isFinite () const override
 Returns true if the function value is finite in the whole domain. More...
 
virtual bool isFinite (const typename Domain< m, m, m, m, m, m, Hz > ::I &i) const override
 Returns true if the function value is finite in the given domain. More...
 
virtual bool isNonZero () const override
 Returns true if the function value is non-zero in the whole domain. More...
 
virtual bool isNonZero (const typename Domain< m, m, m, m, m, m, Hz > ::I &i) const override
 Returns true if the function value is non-zero in the given domain. More...
 
virtual double getMin () const override
 Returns the minimum value for the whole domain. More...
 
virtual double getMin (const typename Domain< m, m, m, m, m, m, Hz > ::I &i) const override
 Returns the minimum value for the given domain. More...
 
virtual double getMax () const override
 Returns the maximum value for the whole domain. More...
 
virtual double getMax (const typename Domain< m, m, m, m, m, m, Hz > ::I &i) const override
 Returns the maximum value for the given domain. More...
 
virtual double getMean () const override
 Returns the mean value for the whole domain. More...
 
virtual double getMean (const typename Domain< m, m, m, m, m, m, Hz > ::I &i) const override
 Returns the mean value for the given domain. More...
 
virtual double getIntegral () const override
 Returns the integral value for the whole domain. More...
 
virtual double getIntegral (const typename Domain< m, m, m, m, m, m, Hz > ::I &i) const override
 Returns the integral value for the given domain. More...
 
virtual const Ptr< const IFunction< double, Domain< m, m, m, m, m, m, Hz > > > add (const Ptr< const IFunction< double, Domain< m, m, m, m, m, m, Hz > >> &o) const override
 Adds the provided function to this function. More...
 
virtual const Ptr< const IFunction< double, Domain< m, m, m, m, m, m, Hz > > > subtract (const Ptr< const IFunction< double, Domain< m, m, m, m, m, m, Hz > >> &o) const override
 Substracts the provided function from this function. More...
 
virtual const Ptr< const IFunction< double, Domain< m, m, m, m, m, m, Hz > > > multiply (const Ptr< const IFunction< double, Domain< m, m, m, m, m, m, Hz > >> &o) const override
 Multiplies the provided function with this function. More...
 
virtual const Ptr< const IFunction< double, Domain< m, m, m, m, m, m, Hz > > > divide (const Ptr< const IFunction< double, Domain< m, m, m, m, m, m, Hz > >> &o) const override
 Divides this function with the provided function. More...
 
virtual std::ostream & printOn (std::ostream &os) const override
 
virtual void print (std::ostream &os, int level=0) const override
 Prints this function in human readable form to the provided stream for the whole domain. More...
 
virtual void print (std::ostream &os, const typename Domain< m, m, m, m, m, m, Hz > ::I &i, int level=0) const override
 Prints this function in a human readable form to the provided stream for the given domain. More...
 
virtual void printPartitioning (std::ostream &os, const typename Domain< m, m, m, m, m, m, Hz > ::I &i, int level) const override
 Prints the partitioning of this function in a human readable form to the provided stream for the given domain. More...
 
virtual void printPartition (std::ostream &os, const typename Domain< m, m, m, m, m, m, Hz > ::I &i, int level=0) const override
 Prints a single partition of this function in a human readable form to the provided stream for the given domain. More...
 
- Public Member Functions inherited from inet::math::IFunction< double, Domain< m, m, m, m, m, m, Hz > >
virtual ~IFunction ()
 
virtual double getValue (const typename Domain< m, m, m, m, m, m, Hz > ::P &p) const=0
 Returns the value of the function at the given point. More...
 

Protected Attributes

const IObstacleLossobstacleLoss
 

Detailed Description

This mathematical function provides the obstacle loss over frequency based on a straight path from start to end.

Constructor & Destructor Documentation

◆ ObstacleLossFunction()

inet::physicallayer::ObstacleLossFunction::ObstacleLossFunction ( const IObstacleLoss obstacleLoss)
inline

Member Function Documentation

◆ getValue()

virtual double inet::physicallayer::ObstacleLossFunction::getValue ( const Point< m, m, m, m, m, m, Hz > &  p) const
inlineoverridevirtual
403  {
404  Coord transmissionPosition(std::get<0>(p).get(), std::get<1>(p).get(), std::get<2>(p).get());
405  Coord receptionPosition(std::get<3>(p).get(), std::get<4>(p).get(), std::get<5>(p).get());
406  Hz frequency = std::get<6>(p);
407  return obstacleLoss->computeObstacleLoss(frequency, transmissionPosition, receptionPosition);
408  }

◆ printStructure()

virtual void inet::physicallayer::ObstacleLossFunction::printStructure ( std::ostream &  os,
int  level = 0 
) const
inlineoverridevirtual

Prints the internal data structure of this function in a human readable form to the provided stream.

Reimplemented from inet::math::FunctionBase< double, Domain< m, m, m, m, m, m, Hz > >.

410 { os << "(" << *obstacleLoss << ")"; }

Member Data Documentation

◆ obstacleLoss

const IObstacleLoss* inet::physicallayer::ObstacleLossFunction::obstacleLoss
protected

The documentation for this class was generated from the following file:
inet::physicallayer::ObstacleLossFunction::obstacleLoss
const IObstacleLoss * obstacleLoss
Definition: PowerFunctions.h:398
inet::physicallayer::IObstacleLoss::computeObstacleLoss
virtual double computeObstacleLoss(Hz frequency, const Coord &transmissionPosition, const Coord &receptionPosition) const =0
Returns the obstacle loss factor caused by physical objects present in the environment as a function ...
inet::units::value
Definition: Units.h:81