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

#include <LayeredScalarAnalogModel.h>

Inheritance diagram for inet::physicallayer::LayeredScalarAnalogModel:
inet::physicallayer::ScalarAnalogModelBase inet::physicallayer::AnalogModelBase inet::physicallayer::IAnalogModel inet::physicallayer::IPrintableObject

Public Member Functions

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

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
}
 
- Protected Member Functions inherited from inet::physicallayer::ScalarAnalogModelBase
virtual bool areOverlappingBands (Hz carrierFrequency1, Hz bandwidth1, Hz carrierFrequency2, Hz bandwidth2) const
 
- Protected Member Functions inherited from inet::physicallayer::AnalogModelBase
virtual EulerAngles computeTransmissionDirection (const ITransmission *transmission, const IArrival *arrival) const
 

Member Function Documentation

const IReception * inet::physicallayer::LayeredScalarAnalogModel::computeReception ( const IRadio receiver,
const ITransmission transmission,
const IArrival arrival 
) const
overridevirtual

Returns the reception for the provided transmission at the receiver.

The result incorporates all modeled attenuation. This function never returns nullptr.

Implements inet::physicallayer::IAnalogModel.

39 {
40  const simtime_t receptionStartTime = arrival->getStartTime();
41  const simtime_t receptionEndTime = arrival->getEndTime();
42  const EulerAngles receptionStartOrientation = arrival->getStartOrientation();
43  const EulerAngles receptionEndOrientation = arrival->getEndOrientation();
44  const Coord receptionStartPosition = arrival->getStartPosition();
45  const Coord receptionEndPosition = arrival->getEndPosition();
46  const LayeredTransmission *layeredTransmission = check_and_cast<const LayeredTransmission *>(transmission);
47  const ScalarTransmissionSignalAnalogModel *transmissionSignalAnalogModel = check_and_cast<const ScalarTransmissionSignalAnalogModel *>(layeredTransmission->getAnalogModel());
48  const W receptionPower = computeReceptionPower(receiverRadio, transmission, arrival);
49  const ScalarReceptionSignalAnalogModel *receptionSignalAnalogModel = new const ScalarReceptionSignalAnalogModel(transmissionSignalAnalogModel->getDuration(), transmissionSignalAnalogModel->getCarrierFrequency(), transmissionSignalAnalogModel->getBandwidth(), receptionPower);
50  return new LayeredReception(receptionSignalAnalogModel, receiverRadio, transmission, receptionStartTime, receptionEndTime, receptionStartPosition, receptionEndPosition, receptionStartOrientation, receptionEndOrientation);
51 }
virtual W computeReceptionPower(const IRadio *radio, const ITransmission *transmission, const IArrival *arrival) const
Definition: ScalarAnalogModelBase.cc:35
compose< J, pow< s,-1 > > W
Definition: Units.h:770
std::ostream & inet::physicallayer::LayeredScalarAnalogModel::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.

34 {
35  return stream << "LayeredScalarAnalogModel";
36 }

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