INET Framework for OMNeT++/OMNEST
|
#include <TransmissionBase.h>
Public Member Functions | |
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 std::ostream & | printToStream (std::ostream &stream, int level) const override |
Prints this object to the provided output stream. More... | |
virtual const IRadio * | getTransmitter () 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 ITransmissionAnalogModel * | getAnalogModel () 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 int | id |
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 |
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 |
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 | ||
) |
|
inlineoverridevirtual |
Returns the analog model of the transmitted signal.
Implements inet::physicallayer::ITransmission.
Reimplemented in inet::physicallayer::LayeredTransmission.
|
inlineoverridevirtual |
Returns the length of the data part of this transmission.
Implements inet::physicallayer::ITransmission.
Referenced by getDuration().
|
inlineoverridevirtual |
Implements inet::physicallayer::ITransmission.
Referenced by getEndTime().
|
inlineoverridevirtual |
Implements inet::physicallayer::ITransmission.
Referenced by getStartTime().
|
inlineoverridevirtual |
Returns the total length of this transmission.
Implements inet::physicallayer::ITransmission.
Referenced by getDuration().
|
overridevirtual |
Returns the length of the provided part of this transmission.
Implements inet::physicallayer::ITransmission.
|
inlineoverridevirtual |
Returns the antenna's orientation when the transmitter ended this transmission.
Implements inet::physicallayer::ITransmission.
|
inlineoverridevirtual |
Returns the antenna's position when the transmitter ended this transmission.
Implements inet::physicallayer::ITransmission.
|
inlineoverridevirtual |
Returns the time when the transmitter ended this transmission.
It is the end of the last bit's transmission.
Implements inet::physicallayer::ITransmission.
Referenced by getEndTime().
|
overridevirtual |
Implements inet::physicallayer::ITransmission.
|
inlineoverridevirtual |
Returns the length of the header part of this transmission.
Implements inet::physicallayer::ITransmission.
Referenced by getDuration().
|
inlineoverridevirtual |
Implements inet::physicallayer::ITransmission.
Referenced by getEndTime().
|
inlineoverridevirtual |
Implements inet::physicallayer::ITransmission.
Referenced by getStartTime().
|
inlineoverridevirtual |
Returns an identifier for this transmission which is globally unique for the whole lifetime of the simulation among all transmissions.
Implements inet::physicallayer::ITransmission.
|
inlineoverridevirtual |
Returns the MAC frame corresponding to this transmission.
This function never returns nullptr.
Implements inet::physicallayer::ITransmission.
Reimplemented in inet::physicallayer::LayeredTransmission.
|
inlineoverridevirtual |
Returns the PHY frame corresponding to this transmission.
This function may return nullptr.
Implements inet::physicallayer::ITransmission.
Reimplemented in inet::physicallayer::LayeredTransmission.
|
inlineoverridevirtual |
Returns the length of the preamble part of this transmission.
Implements inet::physicallayer::ITransmission.
Referenced by getDuration().
|
inlineoverridevirtual |
Implements inet::physicallayer::ITransmission.
Referenced by getEndTime().
|
inlineoverridevirtual |
Implements inet::physicallayer::ITransmission.
Referenced by getStartTime().
|
inlineoverridevirtual |
Returns the antenna's orientation when the transmitter started this transmission.
Implements inet::physicallayer::ITransmission.
|
inlineoverridevirtual |
Returns the antenna's position when the transmitter started this transmission.
Implements inet::physicallayer::ITransmission.
|
inlineoverridevirtual |
Returns the time when the transmitter started this transmission.
It is the start of the first bit's transmission.
Implements inet::physicallayer::ITransmission.
Referenced by getStartTime().
|
overridevirtual |
Implements inet::physicallayer::ITransmission.
|
inlineoverridevirtual |
Returns the transmitter that transmitted this radio signal on the radio channel.
This function never returns nullptr.
Implements inet::physicallayer::ITransmission.
|
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.
Reimplemented in inet::physicallayer::LayeredTransmission, inet::physicallayer::IdealTransmission, inet::physicallayer::NarrowbandTransmissionBase, inet::physicallayer::DimensionalTransmission, inet::physicallayer::FlatTransmissionBase, inet::physicallayer::ScalarTransmission, inet::physicallayer::Ieee80211IdealTransmission, inet::physicallayer::Ieee80211DimensionalTransmission, and inet::physicallayer::Ieee80211ScalarTransmission.
Referenced by inet::physicallayer::NarrowbandTransmissionBase::printToStream(), inet::physicallayer::IdealTransmission::printToStream(), and inet::physicallayer::LayeredTransmission::printToStream().
|
protected |
Referenced by printToStream().
|
protected |
Referenced by printToStream().
|
protected |
Referenced by printToStream().
|
protected |
Referenced by printToStream().
|
protected |
Referenced by printToStream().
|
protected |
Referenced by printToStream().
|
protected |
|
protected |
Referenced by printToStream().
|
protected |
Referenced by printToStream().
|
protected |
Referenced by printToStream().
|
protected |
Referenced by printToStream().
|
protected |
Referenced by printToStream().