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

#include <Arrival.h>

Inheritance diagram for inet::physicallayer::Arrival:
inet::physicallayer::IArrival inet::physicallayer::IPrintableObject

Public Member Functions

 Arrival (const simtime_t startPropagationTime, const simtime_t endPropagationTime, 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 std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual const simtime_t getStartPropagationTime () const override
 
virtual const simtime_t getEndPropagationTime () const override
 
virtual const simtime_t getStartTime () const override
 
virtual const simtime_t getEndTime () const override
 
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 Coord getStartPosition () const override
 
virtual const Coord getEndPosition () const override
 
virtual const EulerAngles getStartOrientation () const override
 
virtual const EulerAngles getEndOrientation () const override
 
- 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 simtime_t startPropagationTime
 
const simtime_t endPropagationTime
 
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
}
 

Constructor & Destructor Documentation

inet::physicallayer::Arrival::Arrival ( const simtime_t  startPropagationTime,
const simtime_t  endPropagationTime,
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 
)
24  :
36 {
37 }
const simtime_t endTime
Definition: Arrival.h:33
const simtime_t headerDuration
Definition: Arrival.h:35
const Coord startPosition
Definition: Arrival.h:37
const simtime_t endPropagationTime
Definition: Arrival.h:31
const simtime_t startTime
Definition: Arrival.h:32
const simtime_t startPropagationTime
Definition: Arrival.h:30
const Coord endPosition
Definition: Arrival.h:38
const simtime_t dataDuration
Definition: Arrival.h:36
const simtime_t preambleDuration
Definition: Arrival.h:34
const EulerAngles startOrientation
Definition: Arrival.h:39
const EulerAngles endOrientation
Definition: Arrival.h:40

Member Function Documentation

virtual const simtime_t inet::physicallayer::Arrival::getDataEndTime ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

Referenced by getEndTime().

61 { return endTime; }
const simtime_t endTime
Definition: Arrival.h:33
virtual const simtime_t inet::physicallayer::Arrival::getDataStartTime ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

Referenced by getStartTime().

60 { return endTime - dataDuration; }
const simtime_t endTime
Definition: Arrival.h:33
const simtime_t dataDuration
Definition: Arrival.h:36
virtual const EulerAngles inet::physicallayer::Arrival::getEndOrientation ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

67 { return endOrientation; }
const EulerAngles endOrientation
Definition: Arrival.h:40
virtual const Coord inet::physicallayer::Arrival::getEndPosition ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

64 { return endPosition; }
const Coord endPosition
Definition: Arrival.h:38
virtual const simtime_t inet::physicallayer::Arrival::getEndPropagationTime ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

48 { return endPropagationTime; }
const simtime_t endPropagationTime
Definition: Arrival.h:31
virtual const simtime_t inet::physicallayer::Arrival::getEndTime ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

Referenced by getEndTime().

51 { return endTime; }
const simtime_t endTime
Definition: Arrival.h:33
const simtime_t inet::physicallayer::Arrival::getEndTime ( IRadioSignal::SignalPart  part) const
overridevirtual

Implements inet::physicallayer::IArrival.

74 {
75  switch (part) {
77  return getEndTime();
79  return getPreambleEndTime();
81  return getHeaderEndTime();
83  return getDataEndTime();
84  default:
85  throw cRuntimeError("Unknown signal part: '%s'", IRadioSignal::getSignalPartName(part));
86  }
87 }
virtual const simtime_t getHeaderEndTime() const override
Definition: Arrival.h:59
static const char * getSignalPartName(SignalPart signalPart)
Returns the name of the provided signal part.
Definition: IRadioSignal.cc:33
virtual const simtime_t getEndTime() const override
Definition: Arrival.h:51
virtual const simtime_t getDataEndTime() const override
Definition: Arrival.h:61
virtual const simtime_t getPreambleEndTime() const override
Definition: Arrival.h:57
virtual const simtime_t inet::physicallayer::Arrival::getHeaderEndTime ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

Referenced by getEndTime().

59 { return endTime - dataDuration; }
const simtime_t endTime
Definition: Arrival.h:33
const simtime_t dataDuration
Definition: Arrival.h:36
virtual const simtime_t inet::physicallayer::Arrival::getHeaderStartTime ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

Referenced by getStartTime().

58 { return startTime + preambleDuration; }
const simtime_t startTime
Definition: Arrival.h:32
const simtime_t preambleDuration
Definition: Arrival.h:34
virtual const simtime_t inet::physicallayer::Arrival::getPreambleEndTime ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

Referenced by getEndTime().

57 { return startTime + preambleDuration; }
const simtime_t startTime
Definition: Arrival.h:32
const simtime_t preambleDuration
Definition: Arrival.h:34
virtual const simtime_t inet::physicallayer::Arrival::getPreambleStartTime ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

Referenced by getStartTime().

56 { return startTime; }
const simtime_t startTime
Definition: Arrival.h:32
virtual const EulerAngles inet::physicallayer::Arrival::getStartOrientation ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

66 { return startOrientation; }
const EulerAngles startOrientation
Definition: Arrival.h:39
virtual const Coord inet::physicallayer::Arrival::getStartPosition ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

63 { return startPosition; }
const Coord startPosition
Definition: Arrival.h:37
virtual const simtime_t inet::physicallayer::Arrival::getStartPropagationTime ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

47 { return startPropagationTime; }
const simtime_t startPropagationTime
Definition: Arrival.h:30
virtual const simtime_t inet::physicallayer::Arrival::getStartTime ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IArrival.

Referenced by getStartTime().

50 { return startTime; }
const simtime_t startTime
Definition: Arrival.h:32
const simtime_t inet::physicallayer::Arrival::getStartTime ( IRadioSignal::SignalPart  part) const
overridevirtual

Implements inet::physicallayer::IArrival.

58 {
59  switch (part) {
61  return getStartTime();
63  return getPreambleStartTime();
65  return getHeaderStartTime();
67  return getDataStartTime();
68  default:
69  throw cRuntimeError("Unknown signal part: '%s'", IRadioSignal::getSignalPartName(part));
70  }
71 }
static const char * getSignalPartName(SignalPart signalPart)
Returns the name of the provided signal part.
Definition: IRadioSignal.cc:33
virtual const simtime_t getHeaderStartTime() const override
Definition: Arrival.h:58
virtual const simtime_t getDataStartTime() const override
Definition: Arrival.h:60
virtual const simtime_t getPreambleStartTime() const override
Definition: Arrival.h:56
virtual const simtime_t getStartTime() const override
Definition: Arrival.h:50
std::ostream & inet::physicallayer::Arrival::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::IPrintableObject.

40 {
41  stream << "Arrival";
42  if (level <= PRINT_LEVEL_TRACE)
43  stream << ", startPropagationTime = " << startPropagationTime
44  << ", endPropagationTime = " << endPropagationTime
45  << ", startTime = " << startTime
46  << ", endTime = " << endTime
47  << ", preambleDuration = " << preambleDuration
48  << ", headerDuration = " << headerDuration
49  << ", dataDuration = " << dataDuration
50  << ", startPosition = " << startPosition
51  << ", endPosition = " << endPosition
52  << ", startOrientation = " << startOrientation
53  << ", endOrientation = " << endOrientation;
54  return stream;
55 }
const simtime_t endTime
Definition: Arrival.h:33
const simtime_t headerDuration
Definition: Arrival.h:35
const Coord startPosition
Definition: Arrival.h:37
const simtime_t endPropagationTime
Definition: Arrival.h:31
const simtime_t startTime
Definition: Arrival.h:32
const simtime_t startPropagationTime
Definition: Arrival.h:30
const Coord endPosition
Definition: Arrival.h:38
const simtime_t dataDuration
Definition: Arrival.h:36
const simtime_t preambleDuration
Definition: Arrival.h:34
const EulerAngles startOrientation
Definition: Arrival.h:39
const EulerAngles endOrientation
Definition: Arrival.h:40

Member Data Documentation

const simtime_t inet::physicallayer::Arrival::dataDuration
protected

Referenced by printToStream().

const EulerAngles inet::physicallayer::Arrival::endOrientation
protected

Referenced by printToStream().

const Coord inet::physicallayer::Arrival::endPosition
protected

Referenced by printToStream().

const simtime_t inet::physicallayer::Arrival::endPropagationTime
protected

Referenced by printToStream().

const simtime_t inet::physicallayer::Arrival::endTime
protected

Referenced by printToStream().

const simtime_t inet::physicallayer::Arrival::headerDuration
protected

Referenced by printToStream().

const simtime_t inet::physicallayer::Arrival::preambleDuration
protected

Referenced by printToStream().

const EulerAngles inet::physicallayer::Arrival::startOrientation
protected

Referenced by printToStream().

const Coord inet::physicallayer::Arrival::startPosition
protected

Referenced by printToStream().

const simtime_t inet::physicallayer::Arrival::startPropagationTime
protected

Referenced by printToStream().

const simtime_t inet::physicallayer::Arrival::startTime
protected

Referenced by printToStream().


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