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

This model characterizes transmissions with the communication range, interference range, and detection range. More...

#include <IdealTransmission.h>

Inheritance diagram for inet::physicallayer::IdealTransmission:
inet::physicallayer::TransmissionBase inet::physicallayer::ITransmission inet::physicallayer::ITransmissionAnalogModel inet::physicallayer::IPrintableObject inet::physicallayer::ISignalAnalogModel inet::physicallayer::IPrintableObject inet::physicallayer::Ieee80211IdealTransmission

Public Member Functions

 IdealTransmission (const IRadio *transmitter, const cPacket *macFrame, 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, m communicationRange, m interferenceRange, m detectionRange)
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual m getCommunicationRange () const
 
virtual m getInterferenceRange () const
 
virtual m getDetectionRange () const
 
- Public Member Functions inherited from inet::physicallayer::TransmissionBase
 TransmissionBase (const IRadio *transmitter, const cPacket *macFrame, 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)
 
virtual int getId () const override
 Returns an identifier for this transmission which is globally unique for the whole lifetime of the simulation among all transmissions. More...
 
virtual const IRadiogetTransmitter () const override
 Returns the transmitter that transmitted this radio signal on the radio channel. More...
 
virtual const cPacket * getPhyFrame () const override
 Returns the PHY frame corresponding to this transmission. More...
 
virtual const cPacket * getMacFrame () const override
 Returns the MAC frame corresponding to this transmission. More...
 
virtual const simtime_t getStartTime () const override
 Returns the time when the transmitter started this transmission. More...
 
virtual const simtime_t getEndTime () const override
 Returns the time when the transmitter ended this 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 transmission. More...
 
virtual const simtime_t getDuration (IRadioSignal::SignalPart part) const override
 Returns the length of the provided part of this transmission. More...
 
virtual const simtime_t getPreambleDuration () const override
 Returns the length of the preamble part of this transmission. More...
 
virtual const simtime_t getHeaderDuration () const override
 Returns the length of the header part of this transmission. More...
 
virtual const simtime_t getDataDuration () const override
 Returns the length of the data part of this transmission. More...
 
virtual const Coord getStartPosition () const override
 Returns the antenna's position when the transmitter started this transmission. More...
 
virtual const Coord getEndPosition () const override
 Returns the antenna's position when the transmitter ended this transmission. More...
 
virtual const EulerAngles getStartOrientation () const override
 Returns the antenna's orientation when the transmitter started this transmission. More...
 
virtual const EulerAngles getEndOrientation () const override
 Returns the antenna's orientation when the transmitter ended this transmission. More...
 
virtual const ITransmissionAnalogModelgetAnalogModel () const override
 Returns the analog model of the transmitted 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 m communicationRange
 
const m interferenceRange
 
const m detectionRange
 
- Protected Attributes inherited from inet::physicallayer::TransmissionBase
const int id
 
const IRadiotransmitter
 
const cPacket * macFrame
 
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
 

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
}
 
- Static Protected Attributes inherited from inet::physicallayer::ITransmission
static int nextId = 0
 

Detailed Description

This model characterizes transmissions with the communication range, interference range, and detection range.

Constructor & Destructor Documentation

inet::physicallayer::IdealTransmission::IdealTransmission ( const IRadio transmitter,
const cPacket *  macFrame,
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,
m  communicationRange,
m  interferenceRange,
m  detectionRange 
)
24  :
29 {
30 }
const Coord startPosition
Definition: TransmissionBase.h:39
const cPacket * macFrame
Definition: TransmissionBase.h:33
const EulerAngles endOrientation
Definition: TransmissionBase.h:42
const IRadio * transmitter
Definition: TransmissionBase.h:32
const m interferenceRange
Definition: IdealTransmission.h:35
TransmissionBase(const IRadio *transmitter, const cPacket *macFrame, 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)
Definition: TransmissionBase.cc:24
const m communicationRange
Definition: IdealTransmission.h:34
const Coord endPosition
Definition: TransmissionBase.h:40
const simtime_t startTime
Definition: TransmissionBase.h:34
const simtime_t dataDuration
Definition: TransmissionBase.h:38
const simtime_t preambleDuration
Definition: TransmissionBase.h:36
const m detectionRange
Definition: IdealTransmission.h:36
const simtime_t endTime
Definition: TransmissionBase.h:35
const EulerAngles startOrientation
Definition: TransmissionBase.h:41
const simtime_t headerDuration
Definition: TransmissionBase.h:37

Member Function Documentation

virtual m inet::physicallayer::IdealTransmission::getCommunicationRange ( ) const
inlinevirtual
43 { return communicationRange; }
const m communicationRange
Definition: IdealTransmission.h:34
virtual m inet::physicallayer::IdealTransmission::getDetectionRange ( ) const
inlinevirtual
45 { return detectionRange; }
const m detectionRange
Definition: IdealTransmission.h:36
virtual m inet::physicallayer::IdealTransmission::getInterferenceRange ( ) const
inlinevirtual
44 { return interferenceRange; }
const m interferenceRange
Definition: IdealTransmission.h:35
std::ostream & inet::physicallayer::IdealTransmission::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::TransmissionBase.

Reimplemented in inet::physicallayer::Ieee80211IdealTransmission.

Referenced by inet::physicallayer::Ieee80211IdealTransmission::printToStream().

33 {
34  stream << "IdealTransmission";
35  if (level <= PRINT_LEVEL_INFO)
36  stream << ", communicationRange = " << communicationRange;
37  if (level <= PRINT_LEVEL_TRACE)
38  stream << ", interferenceRange = " << interferenceRange
39  << ", detectionRange = " << detectionRange;
40  return TransmissionBase::printToStream(stream, level);
41 }
const m interferenceRange
Definition: IdealTransmission.h:35
const m communicationRange
Definition: IdealTransmission.h:34
const m detectionRange
Definition: IdealTransmission.h:36
virtual std::ostream & printToStream(std::ostream &stream, int level) const override
Prints this object to the provided output stream.
Definition: TransmissionBase.cc:40

Member Data Documentation

const m inet::physicallayer::IdealTransmission::communicationRange
protected

Referenced by printToStream().

const m inet::physicallayer::IdealTransmission::detectionRange
protected

Referenced by printToStream().

const m inet::physicallayer::IdealTransmission::interferenceRange
protected

Referenced by printToStream().


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