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

#include <PropagationBase.h>

Inheritance diagram for inet::physicallayer::PropagationBase:
inet::physicallayer::IPropagation inet::physicallayer::IPrintableObject inet::physicallayer::ConstantSpeedPropagation inet::physicallayer::ConstantTimePropagation

Public Member Functions

 PropagationBase ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual mps getPropagationSpeed () const override
 Returns the theoretical propagation speed of radio signals in the range (0, +infinity). More...
 
- Public Member Functions inherited from inet::physicallayer::IPropagation
virtual const IArrivalcomputeArrival (const ITransmission *transmission, IMobility *mobility) const =0
 Returns the time and space coordinates when the transmission arrives at the object that moves with the provided mobility. 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 void initialize (int stage) override
 
virtual void finish () override
 

Protected Attributes

mps propagationSpeed
 
long arrivalComputationCount
 

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
}
 

Constructor & Destructor Documentation

inet::physicallayer::PropagationBase::PropagationBase ( )
24  :
27 {
28 }
mps propagationSpeed
Definition: PropagationBase.h:30
#define NaN
Definition: INETMath.h:103
long arrivalComputationCount
Definition: PropagationBase.h:31
compose< m, pow< s,-1 > > mps
Definition: Units.h:968

Member Function Documentation

void inet::physicallayer::PropagationBase::finish ( )
overrideprotectedvirtual
44 {
45  EV_INFO << "Radio signal arrival computation count = " << arrivalComputationCount << endl;
46  recordScalar("Arrival computation count", arrivalComputationCount);
47 }
long arrivalComputationCount
Definition: PropagationBase.h:31
virtual mps inet::physicallayer::PropagationBase::getPropagationSpeed ( ) const
inlineoverridevirtual

Returns the theoretical propagation speed of radio signals in the range (0, +infinity).

The value might be different from the approximation provided by the actual computation of arrival times.

Implements inet::physicallayer::IPropagation.

41 { return propagationSpeed; }
mps propagationSpeed
Definition: PropagationBase.h:30
void inet::physicallayer::PropagationBase::initialize ( int  stage)
overrideprotectedvirtual

Reimplemented in inet::physicallayer::ConstantSpeedPropagation, and inet::physicallayer::ConstantTimePropagation.

Referenced by inet::physicallayer::ConstantTimePropagation::initialize(), and inet::physicallayer::ConstantSpeedPropagation::initialize().

31 {
32  if (stage == INITSTAGE_LOCAL)
33  propagationSpeed = mps(par("propagationSpeed"));
34 }
mps propagationSpeed
Definition: PropagationBase.h:30
Local initializations.
Definition: InitStages.h:35
compose< m, pow< s,-1 > > mps
Definition: Units.h:968
std::ostream & inet::physicallayer::PropagationBase::printToStream ( std::ostream &  stream,
int  level 
) const
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.

Reimplemented in inet::physicallayer::ConstantSpeedPropagation, and inet::physicallayer::ConstantTimePropagation.

Referenced by inet::physicallayer::ConstantTimePropagation::printToStream(), and inet::physicallayer::ConstantSpeedPropagation::printToStream().

37 {
38  if (level <= PRINT_LEVEL_TRACE)
39  stream << ", propagationSpeed = " << propagationSpeed;
40  return stream;
41 }
mps propagationSpeed
Definition: PropagationBase.h:30

Member Data Documentation

long inet::physicallayer::PropagationBase::arrivalComputationCount
mutableprotected
mps inet::physicallayer::PropagationBase::propagationSpeed
protected

The documentation for this class was generated from the following files: