public abstract class IntStoredSignalSource extends Object implements IntClockedSignalSource
int
whose output is the value of a variable that is
updated only as driven by a clock.
The current value is stored in the field out
, which
needs to be written by the method Process.step(RealtimeContext)
.
IntClockedSignalSource.AbstractRandom
Process.Proxy
Modifier and Type | Field and Description |
---|---|
protected int |
out
The stored value of this signal source.
|
STREAM_CHARACTERISTICS, STREAM_SIZE
Constructor and Description |
---|
IntStoredSignalSource() |
Modifier and Type | Method and Description |
---|---|
int |
getAsInt()
Returns the current value of this signal source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adHoc, after, compile, count, countdown, cycle, dt, during, ofSpliterator, ofStream, ofStream, random, random, random, spliterator, stream
abs, add, choose, choose, choose, choose, clock, compileDataFlow, compileMainSignalSource, constant, delayed, delayed, delayedFeedback, delayedFeedback, divide, equal, getConstantAsInt, getValueClass, greaterOrEqual, greaterThan, guard, hasConstantAsInt, invariant, lessOrEqual, lessThan, map, max, min, modulo, multiply, negate, negative, nonEqual, nonnegative, nonpositive, nonzero, positive, power, probe, publishStoredValueVariable, relateWith, sampleAndHold, stored, subtract, zero, zipWith
compileDataFlowTo, hasDataFlowIO
afterEvery, andThen, compileAsMainProcess, compileControlFlow, compileInitialization, every, getProcess, hasControlFlowIO, hasInitializationIO, init, probe, sequence, sequence, step
public final int getAsInt()
The value may be either computed on demand, or retrieved from storage.
Implementations of this method should have no side effect.
getAsInt
in interface IntSignalSource
getAsInt
in interface IntSupplier
out