Package eu.bandm.sig.adlib2
Class BooleanStoredSignalSource
java.lang.Object
eu.bandm.sig.adlib2.AbstractProcess
eu.bandm.sig.adlib2.BooleanStoredSignalSource
- All Implemented Interfaces:
AbstractClockedSignalSource,AbstractSignalSource,BooleanClockedSignalSource,BooleanSignalSource,CompilableControlFlow,CompilableDataFlow,Component,Process,BooleanSupplier
- Direct Known Subclasses:
CompilableBooleanStoredSignalSource
public abstract class BooleanStoredSignalSource
extends AbstractProcess
implements BooleanClockedSignalSource
Common base class for signal (time-dependent value) sources of
primitive type
boolean 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
FieldsFields inherited from interface eu.bandm.sig.adlib2.AbstractClockedSignalSource
STREAM_CHARACTERISTICS, STREAM_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBooleanStoredSignalSource(Optional<ConstantRealtimeContext> realtimeContext) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturns the current value of this signal source.Methods inherited from class eu.bandm.sig.adlib2.AbstractProcess
getRealtimeContext, 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.BooleanClockedSignalSource
after, compile, drain, drain, duringMethods inherited from interface eu.bandm.sig.adlib2.BooleanSignalSource
and, becoming, ceasing, choose, choose, choose, choose, choose, choose, choose, choose, choose, compileDataFlow, compileMainSignalSource, DEBUG, delayed, delayed, getConstantAsBoolean, getValueClass, guard, hasConstantAsBoolean, invariant, map, not, or, power, probe, publishStoredValueVariable, relateWith, sampleAndHold, stored, xor, zipWithMethods inherited from interface eu.bandm.sig.adlib2.compile.CompilableDataFlow
compileDataFlowTo, hasDataFlowIOMethods inherited from interface eu.bandm.sig.adlib2.Process
afterEvery, andThen, compileAsMainProcess, compileControlFlow, compileInitialization, every, every, getProcess, hasControlFlowIO, hasInitializationIO, init, setRealtimeContext, step
-
Field Details
-
out
protected boolean outThe stored value of this signal source.
-
-
Constructor Details
-
BooleanStoredSignalSource
-
BooleanStoredSignalSource
public BooleanStoredSignalSource()
-
-
Method Details
-
getAsBoolean
public final boolean getAsBoolean()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.
- Specified by:
getAsBooleanin interfaceBooleanSignalSource- Specified by:
getAsBooleanin interfaceBooleanSupplier- Returns:
- the current value of
out
-