Package eu.bandm.sig.adlib2
Class StoredSignalSource<A>
java.lang.Object
eu.bandm.sig.adlib2.AbstractProcess
eu.bandm.sig.adlib2.StoredSignalSource<A>
- Type Parameters:
A- the type of values produced by this signal source
- All Implemented Interfaces:
AbstractClockedSignalSource,AbstractSignalSource,ClockedSignalSource<A>,Component,Process,SignalSource<A>,Supplier<A>
- Direct Known Subclasses:
Delay,MultiDelay,SaH
@Generated(generator="eu.bandm.tools.expander",
version="1.3.1",
timestamp="2026-10-23T14:02:08")
public abstract class StoredSignalSource<A>
extends AbstractProcess
implements ClockedSignalSource<A>
Common base class for signal (time-dependent value) sources of
a fixed object type
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().
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib2.Process
Process.Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AThe stored value of this signal source.The type of values produced by this signal source.Fields inherited from interface eu.bandm.sig.adlib2.AbstractClockedSignalSource
STREAM_CHARACTERISTICS, STREAM_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionStoredSignalSource(Class<? super A> valueClass) Creates a new instance.protectedStoredSignalSource(Optional<ConstantRealtimeContext> realtimeContext, Class<? super A> valueClass) Creates a new instance of a derived class with a fixed realtime context. -
Method Summary
Methods inherited from class eu.bandm.sig.adlib2.AbstractProcess
getRealtimeContext, hasFixedConstantRealtimeContext, setRealtimeContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.sig.adlib2.ClockedSignalSource
after, drain, drain, during, spliterator, streamMethods inherited from interface eu.bandm.sig.adlib2.Process
afterEvery, andThen, conditional, every, every, getProcess, init, setRealtimeContext, stepMethods inherited from interface eu.bandm.sig.adlib2.SignalSource
clockedAfter, delayed, delayed, eq, getConstant, guard, hasConstant, invariant, map, map, neq, power, probe, relateWith, sampleAndHold, stored, zipWith
-
Field Details
-
valueClass
The type of values produced by this signal source. -
out
The stored value of this signal source.
-
-
Constructor Details
-
StoredSignalSource
protected StoredSignalSource(Optional<ConstantRealtimeContext> realtimeContext, Class<? super A> valueClass) Creates a new instance of a derived class with a fixed realtime context.The given realtime context is actually ignored by this constructor. It exists for purposes of regularity.
- Parameters:
realtimeContext- an optional realtime contextvalueClass- the type of values produced by this signal source
-
StoredSignalSource
Creates a new instance.- Parameters:
valueClass- the type of values produced by this signal source
-
-
Method Details
-
getValueClass
Returns the type of elements produced by this signal source.This implementation returns
Object.class. Subclasses may override this method to provide more specific type information.- Specified by:
getValueClassin interfaceAbstractSignalSource- Specified by:
getValueClassin interfaceSignalSource<A>- Returns:
- the type of elements produced by this signal source
-
get
Returns the current value of this signal source.The value may be either computed on demand, or retrieved from storage.
Implementations of this method should have no side effect.
-