A - the type of values produced by this signal sourcepublic abstract class StoredSignalSource<A> extends Object implements ClockedSignalSource<A>
The current value is stored in the field out, which
needs to be written by the method Process.step(RealtimeContext).
Process.Proxy| Modifier and Type | Field and Description |
|---|---|
protected A |
out
The stored value of this signal source.
|
protected Class<? super A> |
valueClass
The type of values produced by this signal source.
|
STREAM_CHARACTERISTICS, STREAM_SIZE| Constructor and Description |
|---|
StoredSignalSource(Class<? super A> valueClass)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
A |
get()
Returns the current value of this signal source.
|
Class<? super A> |
getValueClass()
Returns the type of values produced by this entity.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadHoc, after, compile, cycle, during, ofSpliterator, ofStream, ofStream, spliterator, streamchoose, choose, choose, choose, clock, compileDataFlow, compileMainSignalSource, constant, constant, delayed, delayed, delayedFeedback, delayedFeedback, eq, getConstant, guard, hasConstant, invariant, map, map, neq, power, probe, publishStoredValueVariable, relateWith, sampleAndHold, stored, zipWithcompileDataFlowTo, hasDataFlowIOafterEvery, andThen, compileAsMainProcess, compileControlFlow, compileInitialization, every, getProcess, hasControlFlowIO, hasInitializationIO, init, probe, sequence, sequence, stepprotected final Class<? super A> valueClass
protected A out
public Class<? super A> getValueClass()
For signals of primitive value type, the result will be the corresponding pseudoclass.
This implementation returns Object.class. Subclasses
may override this method to provide more specific type
information.
getValueClass in interface CompilableDataFlowgetValueClass in interface SignalSource<A>Class.isPrimitive()public final A get()
The value may be either computed on demand, or retrieved from storage.
Implementations of this method should have no side effect.