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

This model characterizes receptions with a simplified reception power that falls into one of the categories: receivable, interfering, detectable, and undetectable. More...

#include <IdealReception.h>

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

Public Types

enum  Power { POWER_UNDETECTABLE, POWER_DETECTABLE, POWER_INTERFERING, POWER_RECEIVABLE }
 
- 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

 IdealReception (const IRadio *radio, const ITransmission *transmission, const simtime_t startTime, const simtime_t endTime, const Coord startPosition, const Coord endPosition, const EulerAngles startOrientation, const EulerAngles endOrientation, const Power power)
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual Power getPower () const
 
- 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 EulerAngles startOrientation, const EulerAngles 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 Coord getStartPosition () const override
 Returns the antenna's position when the receiver started to receive the corresponding transmission. More...
 
virtual const Coord getEndPosition () const override
 Returns the antenna's position when the receiver ended to receive the corresponding transmission. More...
 
virtual const EulerAngles getStartOrientation () const override
 Returns the antenna's orientation when the receiver started to receive the corresponding transmission. More...
 
virtual const EulerAngles getEndOrientation () const override
 Returns the antenna's orientation when the receiver ended to receive the corresponding transmission. More...
 
virtual const IReceptionAnalogModelgetAnalogModel () const override
 Returns the analog model of the received signal. 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 Attributes

const Power power
 
- 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 EulerAngles startOrientation
 
const EulerAngles endOrientation
 

Detailed Description

This model characterizes receptions with a simplified reception power that falls into one of the categories: receivable, interfering, detectable, and undetectable.

Member Enumeration Documentation

Enumerator
POWER_UNDETECTABLE 
POWER_DETECTABLE 
POWER_INTERFERING 
POWER_RECEIVABLE 

Constructor & Destructor Documentation

inet::physicallayer::IdealReception::IdealReception ( const IRadio radio,
const ITransmission transmission,
const simtime_t  startTime,
const simtime_t  endTime,
const Coord  startPosition,
const Coord  endPosition,
const EulerAngles  startOrientation,
const EulerAngles  endOrientation,
const Power  power 
)
30  :
32  power(power)
33 {
34 }
const Coord startPosition
Definition: ReceptionBase.h:39
const Power power
Definition: IdealReception.h:43
ReceptionBase(const IRadio *receiver, const ITransmission *transmission, const simtime_t startTime, const simtime_t endTime, const Coord startPosition, const Coord endPosition, const EulerAngles startOrientation, const EulerAngles endOrientation)
Definition: ReceptionBase.cc:24
const simtime_t endTime
Definition: ReceptionBase.h:35
const EulerAngles endOrientation
Definition: ReceptionBase.h:42
const ITransmission * transmission
Definition: ReceptionBase.h:33
const Coord endPosition
Definition: ReceptionBase.h:40
const EulerAngles startOrientation
Definition: ReceptionBase.h:41
const simtime_t startTime
Definition: ReceptionBase.h:34

Member Function Documentation

virtual Power inet::physicallayer::IdealReception::getPower ( ) const
inlinevirtual
std::ostream & inet::physicallayer::IdealReception::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::ReceptionBase.

37 {
38  stream << "IdealReception";
39  if (level <= PRINT_LEVEL_INFO)
40  stream << ", power = " << cEnum::get(opp_typename(typeid(IdealReception::Power)))->getStringFor(power) + 6;
41  return ReceptionBase::printToStream(stream, level);
42 }
const Power power
Definition: IdealReception.h:43
Power
Definition: IdealReception.h:35
virtual std::ostream & printToStream(std::ostream &stream, int level) const override
Prints this object to the provided output stream.
Definition: ReceptionBase.cc:39

Member Data Documentation

const Power inet::physicallayer::IdealReception::power
protected

Referenced by printToStream().


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