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

#include <LayeredReception.h>

Inheritance diagram for inet::physicallayer::LayeredReception:
inet::physicallayer::ReceptionBase inet::physicallayer::IReception inet::physicallayer::IReceptionAnalogModel inet::IPrintableObject inet::physicallayer::ISignalAnalogModel inet::IPrintableObject

Public Member Functions

 LayeredReception (const IReceptionAnalogModel *analogModel, const IRadio *radio, const ITransmission *transmission, const simtime_t startTime, const simtime_t endTime, const Coord &startPosition, const Coord &endPosition, const Quaternion &startOrientation, const Quaternion &endOrientation)
 
virtual ~LayeredReception ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level, int evFlags=0) const override
 Prints this object to the provided output stream. More...
 
virtual const IReceptionAnalogModelgetAnalogModel () const override
 Returns the analog model of the received signal. More...
 
- Public Member Functions inherited from inet::physicallayer::ReceptionBase
 ReceptionBase (const IRadio *receiver, const ITransmission *transmission, const simtime_t startTime, const simtime_t endTime, const Coord &startPosition, const Coord &endPosition, const Quaternion &startOrientation, const Quaternion &endOrientation)
 
virtual const IRadiogetReceiver () const override
 Returns the receiver that received the corresponding transmission from the radio medium. More...
 
virtual const ITransmissiongetTransmission () const override
 Returns the transmission that corresponds to this reception at the receiver. More...
 
virtual const simtime_t getStartTime () const override
 Returns the time when the receiver started to receive the corresponding transmission. More...
 
virtual const simtime_t getEndTime () const override
 Returns the time when the receiver ended to receive the corresponding transmission. More...
 
virtual const simtime_t getStartTime (IRadioSignal::SignalPart part) const override
 
virtual const simtime_t getEndTime (IRadioSignal::SignalPart part) const override
 
virtual const simtime_t getPreambleStartTime () const override
 
virtual const simtime_t getPreambleEndTime () const override
 
virtual const simtime_t getHeaderStartTime () const override
 
virtual const simtime_t getHeaderEndTime () const override
 
virtual const simtime_t getDataStartTime () const override
 
virtual const simtime_t getDataEndTime () const override
 
virtual const simtime_t getDuration () const override
 Returns the total length of this reception. More...
 
virtual const simtime_t getDuration (IRadioSignal::SignalPart part) const override
 Returns the length of the provided part of this reception. More...
 
virtual const simtime_t getPreambleDuration () const override
 Returns the length of the preamble part of this reception. More...
 
virtual const simtime_t getHeaderDuration () const override
 Returns the length of the header part of this reception. More...
 
virtual const simtime_t getDataDuration () const override
 Returns the length of the data part of this reception. More...
 
virtual const CoordgetStartPosition () const override
 Returns the antenna's position when the receiver started to receive the corresponding transmission. More...
 
virtual const CoordgetEndPosition () const override
 Returns the antenna's position when the receiver ended to receive the corresponding transmission. More...
 
virtual const QuaterniongetStartOrientation () const override
 Returns the antenna's orientation when the receiver started to receive the corresponding transmission. More...
 
virtual const QuaterniongetEndOrientation () const override
 Returns the antenna's orientation when the receiver ended to receive the corresponding transmission. More...
 
- Public Member Functions inherited from inet::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::string printToString () const
 
virtual std::string printToString (int level, int evFlags=0) const
 
virtual std::string getInfoStringRepresentation (int evFlags=0) const
 
virtual std::string getDetailStringRepresentation (int evFlags=0) const
 
virtual std::string getDebugStringRepresentation (int evFlags=0) const
 
virtual std::string getTraceStringRepresentation (int evFlags=0) const
 
virtual std::string getCompleteStringRepresentation (int evFlags=0) const
 

Protected Attributes

const IReceptionAnalogModelanalogModel
 
- Protected Attributes inherited from inet::physicallayer::ReceptionBase
const IRadioreceiver
 
const ITransmissiontransmission
 
const simtime_t startTime
 
const simtime_t endTime
 
const simtime_t preambleDuration
 
const simtime_t headerDuration
 
const simtime_t dataDuration
 
const Coord startPosition
 
const Coord endPosition
 
const Quaternion startOrientation
 
const Quaternion endOrientation
 

Additional Inherited Members

- Public Types inherited from inet::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 
enum  PrintFlag { PRINT_FLAG_FORMATTED = (1 << 0), PRINT_FLAG_MULTILINE = (1 << 1) }
 

Constructor & Destructor Documentation

◆ LayeredReception()

inet::physicallayer::LayeredReception::LayeredReception ( const IReceptionAnalogModel analogModel,
const IRadio radio,
const ITransmission transmission,
const simtime_t  startTime,
const simtime_t  endTime,
const Coord startPosition,
const Coord endPosition,
const Quaternion startOrientation,
const Quaternion endOrientation 
)

◆ ~LayeredReception()

inet::physicallayer::LayeredReception::~LayeredReception ( )
virtual
20 {
21  delete analogModel;
22 }

Member Function Documentation

◆ getAnalogModel()

virtual const IReceptionAnalogModel* inet::physicallayer::LayeredReception::getAnalogModel ( ) const
inlineoverridevirtual

◆ printToStream()

std::ostream & inet::physicallayer::LayeredReception::printToStream ( std::ostream &  stream,
int  level,
int  evFlags = 0 
) const
overridevirtual

Prints this object to the provided output stream.

Reimplemented from inet::physicallayer::ReceptionBase.

25 {
26  stream << "LayeredReception";
27  if (level <= PRINT_LEVEL_DETAIL)
29  return ReceptionBase::printToStream(stream, level);
30 
31 }

Member Data Documentation

◆ analogModel

const IReceptionAnalogModel* inet::physicallayer::LayeredReception::analogModel
protected

Referenced by printToStream(), and ~LayeredReception().


The documentation for this class was generated from the following files:
inet::physicallayer::ReceptionBase::endPosition
const Coord endPosition
Definition: ReceptionBase.h:30
inet::physicallayer::ReceptionBase::transmission
const ITransmission * transmission
Definition: ReceptionBase.h:23
inet::IPrintableObject::PRINT_LEVEL_DETAIL
@ PRINT_LEVEL_DETAIL
Definition: IPrintableObject.h:24
inet::physicallayer::ReceptionBase::startTime
const simtime_t startTime
Definition: ReceptionBase.h:24
inet::physicallayer::ReceptionBase::startOrientation
const Quaternion startOrientation
Definition: ReceptionBase.h:31
inet::physicallayer::ReceptionBase::ReceptionBase
ReceptionBase(const IRadio *receiver, const ITransmission *transmission, const simtime_t startTime, const simtime_t endTime, const Coord &startPosition, const Coord &endPosition, const Quaternion &startOrientation, const Quaternion &endOrientation)
Definition: ReceptionBase.cc:14
inet::physicallayer::ReceptionBase::endTime
const simtime_t endTime
Definition: ReceptionBase.h:25
inet::physicallayer::ReceptionBase::endOrientation
const Quaternion endOrientation
Definition: ReceptionBase.h:32
inet::printFieldToString
std::string printFieldToString(const IPrintableObject *object, int level, int evFlags=0)
Definition: IPrintableObject.h:98
EV_FIELD
#define EV_FIELD(...)
Definition: INETDefs.h:112
inet::evFlags
int evFlags
Definition: INETDefs.cc:12
inet::physicallayer::LayeredReception::analogModel
const IReceptionAnalogModel * analogModel
Definition: LayeredReception.h:29
inet::physicallayer::ReceptionBase::printToStream
virtual std::ostream & printToStream(std::ostream &stream, int level, int evFlags=0) const override
Prints this object to the provided output stream.
Definition: ReceptionBase.cc:29
inet::physicallayer::ReceptionBase::startPosition
const Coord startPosition
Definition: ReceptionBase.h:29