#include <ConstantTimePropagation.h>
inet::physicallayer::ConstantTimePropagation::ConstantTimePropagation |
( |
| ) |
|
PropagationBase()
Definition: PropagationBase.cc:24
Returns the time and space coordinates when the transmission arrives at the object that moves with the provided mobility.
The result might be an approximation only, because there's a tradeoff between precision and performance. This function never returns nullptr.
Implements inet::physicallayer::IPropagation.
42 const Coord position = mobility->getCurrentPosition();
43 const EulerAngles orientation = mobility->getCurrentAngularPosition();
44 const simtime_t startTime = transmission->getStartTime();
45 const simtime_t endTime = transmission->getEndTime();
46 const simtime_t preambleDuration = transmission->getPreambleDuration();
47 const simtime_t headerDuration = transmission->getHeaderDuration();
48 const simtime_t dataDuration = transmission->getDataDuration();
49 return new Arrival(
propagationTime,
propagationTime, startTime +
propagationTime, endTime +
propagationTime, preambleDuration, headerDuration, dataDuration, position, position, orientation, orientation);
simtime_t propagationTime
Definition: ConstantTimePropagation.h:30
long arrivalComputationCount
Definition: PropagationBase.h:31
void inet::physicallayer::ConstantTimePropagation::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::physicallayer::PropagationBase.
simtime_t propagationTime
Definition: ConstantTimePropagation.h:30
virtual void initialize(int stage) override
Definition: PropagationBase.cc:30
Local initializations.
Definition: InitStages.h:35
std::ostream & inet::physicallayer::ConstantTimePropagation::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::PropagationBase.
54 stream <<
"ConstantTimePropagation";
virtual std::ostream & printToStream(std::ostream &stream, int level) const override
Prints this object to the provided output stream.
Definition: PropagationBase.cc:36
simtime_t propagationTime
Definition: ConstantTimePropagation.h:30
Definition: IPrintableObject.h:34
simtime_t inet::physicallayer::ConstantTimePropagation::propagationTime |
|
protected |
The documentation for this class was generated from the following files: