|
INET Framework for OMNeT++/OMNEST
|
#include <TransmissionBase.h>
Public Member Functions | |
| TransmissionBase (const IRadio *transmitter, const Packet *packet, 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) | |
| 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, int evFlags=0) 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 int | getTransmitterId () const override |
| Returns the transmitter's id that transmitted this radio signal on the radio channel. More... | |
| virtual const IAntennaGain * | getTransmitterAntennaGain () const override |
| Returns the gain of the transmitting antenna. More... | |
| virtual const IRadioMedium * | getMedium () const override |
| Returns the radio medium used for this transmission. More... | |
| virtual const Packet * | getPacket () const override |
| Returns the packet 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 Quaternion & | getStartOrientation () const override |
| Returns the antenna's orientation when the transmitter started this transmission. More... | |
| virtual const Quaternion & | 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::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 int | id |
| const IRadioMedium * | radioMedium |
| const int | transmitterId |
| Ptr< const IAntennaGain > | transmitterGain |
| const Packet * | packet |
| 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) } |
Static Protected Attributes inherited from inet::physicallayer::ITransmission | |
| static int | nextId = 0 |
| inet::physicallayer::TransmissionBase::TransmissionBase | ( | const IRadio * | transmitter, |
| const Packet * | packet, | ||
| 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 | ||
| ) |
|
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 |
|
inlineoverridevirtual |
|
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 |
|
inlineoverridevirtual |
|
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 radio medium used for this transmission.
This function never return nullptr.
Implements inet::physicallayer::ITransmission.
|
inlineoverridevirtual |
Returns the packet corresponding to this transmission.
This function never returns 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 |
|
inlineoverridevirtual |
|
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.
|
overridevirtual |
Returns the transmitter that transmitted this radio signal on the radio channel.
This function may return nullptr.
Implements inet::physicallayer::ITransmission.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Returns the transmitter's id that transmitted this radio signal on the radio channel.
Implements inet::physicallayer::ITransmission.
|
overridevirtual |
Prints this object to the provided output stream.
Reimplemented from inet::IPrintableObject.
Reimplemented in inet::physicallayer::LayeredTransmission, inet::physicallayer::UnitDiskTransmission, inet::physicallayer::NarrowbandTransmissionBase, inet::physicallayer::DimensionalTransmission, inet::physicallayer::FlatTransmissionBase, inet::physicallayer::ScalarTransmission, inet::physicallayer::Ieee80211UnitDiskTransmission, inet::physicallayer::Ieee80211LayeredTransmission, inet::physicallayer::Ieee80211DimensionalTransmission, inet::physicallayer::Ieee80211ScalarTransmission, inet::physicallayer::ApskDimensionalTransmission, and inet::physicallayer::ApskScalarTransmission.
Referenced by inet::physicallayer::NarrowbandTransmissionBase::printToStream(), inet::physicallayer::UnitDiskTransmission::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 |
|
protected |
|
protected |
Referenced by printToStream().
|
protected |
Referenced by getTransmitter().
|
protected |
Referenced by printToStream().
|
protected |
Referenced by printToStream().
|
protected |
Referenced by printToStream().
|
protected |
|
protected |
Referenced by getTransmitter(), and printToStream().