public abstract class ConstantRealtimeContext extends RealtimeContext
Instances of this class represent signal drivers that operate with
constant sampling rate, that is the amount of model time passing between
consecutive Realtime#step
events is always the same, and known
statically before the network is used.
Static sampling rate/period information may be used during the construction of a network for
Optional<ConstantRealtimeContext>
. If they do, then the contract is,
unless otherwise noted: ConstantRealtimeContext
object on all Realtime#step
events, or otherwise model time inconsistency may occur. Note
that, for efficiency reasons, this restriction may not be dynamically checked
by the component.Constructor and Description |
---|
ConstantRealtimeContext() |
Modifier and Type | Method and Description |
---|---|
static ConstantRealtimeContext |
period(int period) |
static ConstantRealtimeContext |
period(IntFraction period) |
static ConstantRealtimeContext |
rate(int rate) |
static ConstantRealtimeContext |
rate(IntFraction rate) |
ConstantRealtimeContext |
slowdown(int slowdown) |
ConstantRealtimeContext |
slowdown(IntFraction slowdown) |
ConstantRealtimeContext |
speedup(int speedup) |
ConstantRealtimeContext |
speedup(IntFraction speedup) |
static ConstantRealtimeContext |
unit() |
getSamplingPeriodAsDouble, getSamplingPeriodAsFloat, getSamplingPeriodAsInt, getSamplingPeriodAsLong, getSamplingPeriodPerRateAsInt, getSamplingPeriodPerRateAsLong, getSamplingRateAsDouble, getSamplingRateAsFloat, getSamplingRateAsInt, getSamplingRateAsLong, getSamplingRatePerPeriodAsInt, getSamplingRatePerPeriodAsLong, getSignalProbe, isRational, setSignalProbe
public static ConstantRealtimeContext unit()
public static ConstantRealtimeContext rate(int rate)
public static ConstantRealtimeContext rate(IntFraction rate)
public static ConstantRealtimeContext period(int period)
public static ConstantRealtimeContext period(IntFraction period)
public ConstantRealtimeContext slowdown(int slowdown)
public ConstantRealtimeContext slowdown(IntFraction slowdown)
public ConstantRealtimeContext speedup(int speedup)
public ConstantRealtimeContext speedup(IntFraction speedup)