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

#include <DimensionalTransmission.h>

Inheritance diagram for inet::physicallayer::DimensionalTransmission:
inet::physicallayer::FlatTransmissionBase inet::physicallayer::IDimensionalSignal inet::physicallayer::NarrowbandTransmissionBase inet::physicallayer::TransmissionBase inet::physicallayer::INarrowbandSignal inet::physicallayer::ITransmission inet::physicallayer::ITransmissionAnalogModel inet::physicallayer::IPrintableObject inet::physicallayer::ISignalAnalogModel inet::physicallayer::IPrintableObject inet::physicallayer::Ieee80211DimensionalTransmission

Public Member Functions

 DimensionalTransmission (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, int headerBitLength, int payloadBitLength, bps bitrate, const IModulation *modulation, Hz carrierFrequency, Hz bandwidth, const ConstMapping *power)
 
virtual ~DimensionalTransmission ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual const ConstMappinggetPower () const override
 
virtual W computeMinPower (const simtime_t startTime, const simtime_t endTime) const override
 
- Public Member Functions inherited from inet::physicallayer::FlatTransmissionBase
 FlatTransmissionBase (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, int headerBitLength, int payloadBitLength, bps bitrate, const IModulation *modulation, Hz carrierFrequency, Hz bandwidth)
 
virtual int getHeaderBitLength () const
 
virtual int getDataBitLength () const
 
virtual bps getBitrate () const
 
- Public Member Functions inherited from inet::physicallayer::NarrowbandTransmissionBase
 NarrowbandTransmissionBase (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, const IModulation *modulation, Hz carrierFrequency, Hz bandwidth)
 
virtual const IModulationgetModulation () const
 
virtual Hz getCarrierFrequency () const override
 
virtual Hz getBandwidth () const override
 
- 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 ConstMappingpower
 
- Protected Attributes inherited from inet::physicallayer::FlatTransmissionBase
const int headerBitLength
 
const int dataBitLength
 
const bps bitrate
 
- Protected Attributes inherited from inet::physicallayer::NarrowbandTransmissionBase
const IModulationmodulation
 
const Hz carrierFrequency
 
const Hz bandwidth
 
- 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
 

Constructor & Destructor Documentation

inet::physicallayer::DimensionalTransmission::DimensionalTransmission ( 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,
int  headerBitLength,
int  payloadBitLength,
bps  bitrate,
const IModulation modulation,
Hz  carrierFrequency,
Hz  bandwidth,
const ConstMapping power 
)
24  :
26  power(power)
27 {
28 }
const Coord startPosition
Definition: TransmissionBase.h:39
const ConstMapping * power
Definition: DimensionalTransmission.h:32
const IModulation * modulation
Definition: NarrowbandTransmissionBase.h:32
const cPacket * macFrame
Definition: TransmissionBase.h:33
const EulerAngles endOrientation
Definition: TransmissionBase.h:42
const Hz bandwidth
Definition: NarrowbandTransmissionBase.h:34
const IRadio * transmitter
Definition: TransmissionBase.h:32
const bps bitrate
Definition: FlatTransmissionBase.h:32
const int headerBitLength
Definition: FlatTransmissionBase.h:30
const Coord endPosition
Definition: TransmissionBase.h:40
const simtime_t startTime
Definition: TransmissionBase.h:34
const simtime_t dataDuration
Definition: TransmissionBase.h:38
FlatTransmissionBase(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, int headerBitLength, int payloadBitLength, bps bitrate, const IModulation *modulation, Hz carrierFrequency, Hz bandwidth)
Definition: FlatTransmissionBase.cc:24
const Hz carrierFrequency
Definition: NarrowbandTransmissionBase.h:33
const simtime_t preambleDuration
Definition: TransmissionBase.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
virtual inet::physicallayer::DimensionalTransmission::~DimensionalTransmission ( )
inlinevirtual
36 { delete power; }
const ConstMapping * power
Definition: DimensionalTransmission.h:32

Member Function Documentation

virtual W inet::physicallayer::DimensionalTransmission::computeMinPower ( const simtime_t  startTime,
const simtime_t  endTime 
) const
inlineoverridevirtual

Implements inet::physicallayer::INarrowbandSignal.

41 { ASSERT(false); return W(NaN); }
compose< J, pow< s,-1 > > W
Definition: Units.h:770
#define NaN
Definition: INETMath.h:103
virtual const ConstMapping* inet::physicallayer::DimensionalTransmission::getPower ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IDimensionalSignal.

40 { return power; }
const ConstMapping * power
Definition: DimensionalTransmission.h:32
std::ostream & inet::physicallayer::DimensionalTransmission::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::FlatTransmissionBase.

Reimplemented in inet::physicallayer::Ieee80211DimensionalTransmission.

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

31 {
32  stream << "DimensionalTransmission";
33  if (level <= PRINT_LEVEL_DETAIL)
34  stream << ", powerDimensionSet = " << power->getDimensionSet();
35  if (level <= PRINT_LEVEL_DEBUG)
36  stream << ", powerMax = " << MappingUtils::findMax(*power)
37  << ", powerMin = " << MappingUtils::findMin(*power);
38  if (level <= PRINT_LEVEL_TRACE)
39  stream << ", power = " << power;
40  return FlatTransmissionBase::printToStream(stream, level);
41 }
const ConstMapping * power
Definition: DimensionalTransmission.h:32
static Argument::mapped_type findMax(const ConstMapping &m, Argument::mapped_type_cref cRetNotFound=cMaxNotFound)
Iterates over the passed mapping and returns value at the key entry with the highest value...
Definition: MappingUtils.cc:237
const DimensionSet & getDimensionSet() const
Returns this Mappings domain as DimensionSet.
Definition: MappingBase.h:995
virtual std::ostream & printToStream(std::ostream &stream, int level) const override
Prints this object to the provided output stream.
Definition: FlatTransmissionBase.cc:32
static Argument::mapped_type findMin(const ConstMapping &m, Argument::mapped_type_cref cRetNotFound=cMinNotFound)
Iterates over the passed mapping and returns value at the key entry with the smallest value...
Definition: MappingUtils.cc:322

Member Data Documentation

const ConstMapping* inet::physicallayer::DimensionalTransmission::power
protected

Referenced by printToStream().


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