public abstract class LongStoredSignalSource extends Object implements LongClockedSignalSource
long
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)
.
LongClockedSignalSource.AbstractRandom
Process.Proxy
Modifier and Type | Field and Description |
---|---|
protected long |
out
The stored value of this signal source.
|
STREAM_CHARACTERISTICS, STREAM_SIZE
Constructor and Description |
---|
LongStoredSignalSource() |
Modifier and Type | Method and Description |
---|---|
long |
getAsLong()
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, getConstantAsLong, getValueClass, greaterOrEqual, greaterThan, guard, hasConstantAsLong, 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 long getAsLong()
The value may be either computed on demand, or retrieved from storage.
Implementations of this method should have no side effect.
getAsLong
in interface LongSignalSource
getAsLong
in interface LongSupplier
out