INET Framework for OMNeT++/OMNEST
|
This interface represents the transmission of a radio signal. More...
#include <ITransmission.h>
Public Member Functions | |
virtual int | getId () const =0 |
Returns an identifier for this transmission which is globally unique for the whole lifetime of the simulation among all transmissions. More... | |
virtual const IRadio * | getTransmitter () const =0 |
Returns the transmitter that transmitted this radio signal on the radio channel. More... | |
virtual const cPacket * | getPhyFrame () const =0 |
Returns the PHY frame corresponding to this transmission. More... | |
virtual const cPacket * | getMacFrame () const =0 |
Returns the MAC frame corresponding to this transmission. More... | |
virtual const simtime_t | getStartTime () const =0 |
Returns the time when the transmitter started this transmission. More... | |
virtual const simtime_t | getEndTime () const =0 |
Returns the time when the transmitter ended this transmission. More... | |
virtual const simtime_t | getStartTime (IRadioSignal::SignalPart part) const =0 |
virtual const simtime_t | getEndTime (IRadioSignal::SignalPart part) const =0 |
virtual const simtime_t | getPreambleStartTime () const =0 |
virtual const simtime_t | getPreambleEndTime () const =0 |
virtual const simtime_t | getHeaderStartTime () const =0 |
virtual const simtime_t | getHeaderEndTime () const =0 |
virtual const simtime_t | getDataStartTime () const =0 |
virtual const simtime_t | getDataEndTime () const =0 |
virtual const simtime_t | getDuration () const =0 |
Returns the total length of this transmission. More... | |
virtual const simtime_t | getDuration (IRadioSignal::SignalPart part) const =0 |
Returns the length of the provided part of this transmission. More... | |
virtual const simtime_t | getPreambleDuration () const =0 |
Returns the length of the preamble part of this transmission. More... | |
virtual const simtime_t | getHeaderDuration () const =0 |
Returns the length of the header part of this transmission. More... | |
virtual const simtime_t | getDataDuration () const =0 |
Returns the length of the data part of this transmission. More... | |
virtual const Coord | getStartPosition () const =0 |
Returns the antenna's position when the transmitter started this transmission. More... | |
virtual const Coord | getEndPosition () const =0 |
Returns the antenna's position when the transmitter ended this transmission. More... | |
virtual const EulerAngles | getStartOrientation () const =0 |
Returns the antenna's orientation when the transmitter started this transmission. More... | |
virtual const EulerAngles | getEndOrientation () const =0 |
Returns the antenna's orientation when the transmitter ended this transmission. More... | |
virtual const ITransmissionAnalogModel * | getAnalogModel () const =0 |
Returns the analog model of the transmitted signal. More... | |
Public Member Functions inherited from inet::physicallayer::IPrintableObject | |
virtual | ~IPrintableObject () |
virtual std::ostream & | printToStream (std::ostream &stream, int level) const |
Prints this object to the provided output stream. More... | |
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 |
Static Protected Attributes | |
static int | nextId = 0 |
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 } |
This interface represents the transmission of a radio signal.
There's one instance per transmission of this interface that is sent to all potential receiver radios in a separate radio frame instance.
This interface is strictly immutable to safely support parallel computation.
|
pure virtual |
Returns the analog model of the transmitted signal.
Implemented in inet::physicallayer::TransmissionBase, and inet::physicallayer::LayeredTransmission.
Referenced by inet::physicallayer::TwoRayInterference::computePathLoss(), inet::physicallayer::PathLossBase::computePathLoss(), inet::physicallayer::TwoRayGroundReflection::computePathLoss(), inet::physicallayer::ScalarAnalogModel::computeReception(), inet::physicallayer::ScalarAnalogModelBase::computeReceptionPower(), and inet::physicallayer::DimensionalAnalogModelBase::computeReceptionPower().
|
pure virtual |
Returns the length of the data part of this transmission.
Implemented in inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::ConstantTimePropagation::computeArrival(), and inet::physicallayer::ConstantSpeedPropagation::computeArrival().
|
pure virtual |
Implemented in inet::physicallayer::TransmissionBase.
|
pure virtual |
Implemented in inet::physicallayer::TransmissionBase.
|
pure virtual |
Returns the total length of this transmission.
Implemented in inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::RadioMedium::createReceiverRadioFrame().
|
pure virtual |
Returns the length of the provided part of this transmission.
Implemented in inet::physicallayer::TransmissionBase.
|
pure virtual |
Returns the antenna's orientation when the transmitter ended this transmission.
Implemented in inet::physicallayer::TransmissionBase.
|
pure virtual |
Returns the antenna's position when the transmitter ended this transmission.
Implemented in inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::ConstantSpeedPropagation::computeArrival(), inet::physicallayer::RadioMedium::isInCommunicationRange(), inet::physicallayer::RadioMedium::isInInterferenceRange(), and inet::physicallayer::CommunicationLog::writeTransmission().
|
pure virtual |
Returns the time when the transmitter ended this transmission.
It is the end of the last bit's transmission.
Implemented in inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::RadioMedium::addTransmission(), inet::physicallayer::ConstantTimePropagation::computeArrival(), inet::physicallayer::ConstantSpeedPropagation::computeArrival(), inet::physicallayer::DimensionalAnalogModelBase::computeReceptionPower(), inet::visualizer::MediumVisualizerBase::isSignalPropagationInProgress(), inet::visualizer::MediumVisualizerBase::isSignalTransmissionInProgress(), inet::visualizer::MediumCanvasVisualizer::refreshSignalFigure(), and inet::physicallayer::CommunicationLog::writeTransmission().
|
pure virtual |
Implemented in inet::physicallayer::TransmissionBase.
|
pure virtual |
Returns the length of the header part of this transmission.
Implemented in inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::ConstantTimePropagation::computeArrival(), and inet::physicallayer::ConstantSpeedPropagation::computeArrival().
|
pure virtual |
Implemented in inet::physicallayer::TransmissionBase.
|
pure virtual |
Implemented in inet::physicallayer::TransmissionBase.
|
pure virtual |
Returns an identifier for this transmission which is globally unique for the whole lifetime of the simulation among all transmissions.
Implemented in inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::VectorCommunicationCache::addTransmission(), inet::physicallayer::ReceiverBase::computeIsReceptionAttempted(), inet::visualizer::MediumCanvasVisualizer::createSignalFigure(), inet::physicallayer::ReferenceCommunicationCache::getTransmissionCacheEntry(), inet::physicallayer::VectorCommunicationCache::getTransmissionCacheEntry(), inet::physicallayer::ReceptionBase::printToStream(), inet::visualizer::MediumCanvasVisualizer::refreshSignalFigure(), inet::physicallayer::CommunicationLog::writeReception(), and inet::physicallayer::CommunicationLog::writeTransmission().
|
pure virtual |
Returns the MAC frame corresponding to this transmission.
This function never returns nullptr.
Implemented in inet::physicallayer::LayeredTransmission, and inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::RadioMedium::createReceiverRadioFrame(), inet::visualizer::MediumCanvasVisualizer::createSignalFigure(), inet::physicallayer::RadioMedium::isPotentialReceiver(), inet::visualizer::MediumVisualizerBase::matchesTransmission(), and inet::physicallayer::ReceptionResult::ReceptionResult().
|
pure virtual |
Returns the PHY frame corresponding to this transmission.
This function may return nullptr.
Implemented in inet::physicallayer::LayeredTransmission, and inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::RadioMedium::createReceiverRadioFrame(), and inet::visualizer::MediumVisualizerBase::matchesTransmission().
|
pure virtual |
Returns the length of the preamble part of this transmission.
Implemented in inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::ConstantTimePropagation::computeArrival(), and inet::physicallayer::ConstantSpeedPropagation::computeArrival().
|
pure virtual |
Implemented in inet::physicallayer::TransmissionBase.
|
pure virtual |
Implemented in inet::physicallayer::TransmissionBase.
|
pure virtual |
Returns the antenna's orientation when the transmitter started this transmission.
Implemented in inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::ScalarAnalogModelBase::computeReceptionPower(), and inet::physicallayer::DimensionalAnalogModelBase::computeReceptionPower().
|
pure virtual |
Returns the antenna's position when the transmitter started this transmission.
Implemented in inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::ConstantSpeedPropagation::computeArrival(), inet::physicallayer::TwoRayInterference::computePathLoss(), inet::physicallayer::PathLossBase::computePathLoss(), inet::physicallayer::TwoRayGroundReflection::computePathLoss(), inet::physicallayer::IdealAnalogModel::computeReception(), inet::physicallayer::ScalarAnalogModelBase::computeReceptionPower(), inet::physicallayer::DimensionalAnalogModelBase::computeReceptionPower(), inet::physicallayer::AnalogModelBase::computeTransmissionDirection(), inet::visualizer::MediumCanvasVisualizer::createSignalFigure(), inet::physicallayer::RadioMedium::isInCommunicationRange(), inet::physicallayer::RadioMedium::isInInterferenceRange(), inet::visualizer::MediumCanvasVisualizer::receptionStarted(), inet::visualizer::MediumCanvasVisualizer::refreshSignalFigure(), and inet::physicallayer::CommunicationLog::writeTransmission().
|
pure virtual |
Returns the time when the transmitter started this transmission.
It is the start of the first bit's transmission.
Implemented in inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::ConstantTimePropagation::computeArrival(), inet::physicallayer::ConstantSpeedPropagation::computeArrival(), inet::physicallayer::DimensionalAnalogModelBase::computeReceptionPower(), inet::visualizer::MediumVisualizerBase::isSignalPropagationInProgress(), inet::visualizer::MediumVisualizerBase::isSignalTransmissionInProgress(), inet::visualizer::MediumCanvasVisualizer::refreshSignalFigure(), and inet::physicallayer::CommunicationLog::writeTransmission().
|
pure virtual |
Implemented in inet::physicallayer::TransmissionBase.
|
pure virtual |
Returns the transmitter that transmitted this radio signal on the radio channel.
This function never returns nullptr.
Implemented in inet::physicallayer::TransmissionBase.
Referenced by inet::physicallayer::TwoRayInterference::computePathLoss(), inet::physicallayer::PathLossBase::computePathLoss(), inet::physicallayer::TwoRayGroundReflection::computePathLoss(), inet::physicallayer::ScalarAnalogModelBase::computeReceptionPower(), inet::physicallayer::DimensionalAnalogModelBase::computeReceptionPower(), inet::physicallayer::RadioFrame::getArrival(), inet::physicallayer::RadioFrame::getListening(), inet::physicallayer::RadioFrame::getReception(), inet::physicallayer::RadioMedium::isInterferingTransmission(), inet::visualizer::MediumVisualizerBase::matchesTransmission(), inet::visualizer::MediumCanvasVisualizer::transmissionEnded(), and inet::visualizer::MediumCanvasVisualizer::transmissionStarted().
|
staticprotected |