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

#include <AnalogModelBase.h>

Inheritance diagram for inet::physicallayer::AnalogModelBase:
inet::physicallayer::IAnalogModel inet::physicallayer::IPrintableObject inet::physicallayer::DimensionalAnalogModelBase inet::physicallayer::ScalarAnalogModelBase inet::physicallayer::DimensionalAnalogModel inet::physicallayer::LayeredDimensionalAnalogModel inet::physicallayer::LayeredScalarAnalogModel inet::physicallayer::ScalarAnalogModel

Protected Member Functions

virtual EulerAngles computeTransmissionDirection (const ITransmission *transmission, const IArrival *arrival) const
 

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
}
 
- Public Member Functions inherited from inet::physicallayer::IAnalogModel
virtual const IReceptioncomputeReception (const IRadio *receiver, const ITransmission *transmission, const IArrival *arrival) const =0
 Returns the reception for the provided transmission at the receiver. More...
 
virtual const INoisecomputeNoise (const IListening *listening, const IInterference *interference) const =0
 Returns the total noise summing up all the interfering receptions and noises. More...
 
virtual const ISNIRcomputeSNIR (const IReception *reception, const INoise *noise) const =0
 Returns the signal to noise and interference ratio. More...
 
- Public Member Functions inherited from inet::physicallayer::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const
 Prints this object to the provided output stream. More...
 
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
 

Member Function Documentation

EulerAngles inet::physicallayer::AnalogModelBase::computeTransmissionDirection ( const ITransmission transmission,
const IArrival arrival 
) const
protectedvirtual

Referenced by inet::physicallayer::ScalarAnalogModelBase::computeReceptionPower(), and inet::physicallayer::DimensionalAnalogModelBase::computeReceptionPower().

25 {
26  const Coord transmissionStartPosition = transmission->getStartPosition();
27  const Coord arrivalStartPosition = arrival->getStartPosition();
28  Coord transmissionStartDirection = arrivalStartPosition - transmissionStartPosition;
29  double z = transmissionStartDirection.z;
30  transmissionStartDirection.z = 0;
31  double heading = atan2(transmissionStartDirection.y, transmissionStartDirection.x);
32  double elevation = atan2(z, transmissionStartDirection.length());
33  return EulerAngles(heading, elevation, 0);
34 }

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