#include <IdealOscillator.h>
|
| virtual simtime_t | getComputationOrigin () const override |
| | Returns the oscillator computation origin from which the ticks are measured. More...
|
| |
| virtual simtime_t | getNominalTickLength () const override |
| | Returns the nominal time interval between subsequent ticks. More...
|
| |
| virtual int64_t | computeTicksForInterval (simtime_t timeInterval) const override |
| | Returns the number of ticks in the specified time interval measured from the oscillator computation origin. More...
|
| |
| virtual simtime_t | computeIntervalForTicks (int64_t numTicks) const override |
| | Returns the smallest simulation time interval for the specified number of ticks measured from the oscillator computation origin. More...
|
| |
| virtual const char * | resolveDirective (char directive) const override |
| |
| virtual | ~IOscillator () |
| |
◆ computeIntervalForTicks()
| simtime_t inet::IdealOscillator::computeIntervalForTicks |
( |
int64_t |
numTicks | ) |
const |
|
overridevirtual |
Returns the smallest simulation time interval for the specified number of ticks measured from the oscillator computation origin.
For example, for 0 ticks returns 0, for 1 tick returns the remaining time till the next tick, and so on.
Implements inet::IOscillator.
◆ computeTicksForInterval()
| int64_t inet::IdealOscillator::computeTicksForInterval |
( |
simtime_t |
timeInterval | ) |
const |
|
overridevirtual |
Returns the number of ticks in the specified time interval measured from the oscillator computation origin.
Note that each tick interval taken into consideration may be different from the nominal tick length. Returns the #ticks in (computation origin, computation origin + time interval].
Implements inet::IOscillator.
◆ finish()
| void inet::IdealOscillator::finish |
( |
| ) |
|
|
overrideprotectedvirtual |
29 OscillatorBase::finish();
◆ getComputationOrigin()
| virtual simtime_t inet::IdealOscillator::getComputationOrigin |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the oscillator computation origin from which the ticks are measured.
There may or may not be an actual tick at the returned simulation time.
Implements inet::IOscillator.
◆ getNominalTickLength()
| virtual simtime_t inet::IdealOscillator::getNominalTickLength |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the nominal time interval between subsequent ticks.
This value is usually different from the actual amount of elapsed time between ticks.
Implements inet::IOscillator.
◆ initialize()
| void inet::IdealOscillator::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
◆ origin
| simtime_t inet::IdealOscillator::origin |
|
protected |
◆ tickLength
| simtime_t inet::IdealOscillator::tickLength |
|
protected |
The documentation for this class was generated from the following files: