Package eu.bandm.sig.adlib2
Class ByteStoredSignalSource
java.lang.Object
eu.bandm.sig.adlib2.AbstractProcess
eu.bandm.sig.adlib2.ByteStoredSignalSource
- All Implemented Interfaces:
AbstractClockedSignalSource,AbstractSignalSource,ByteClockedSignalSource,ByteSignalSource,CompilableControlFlow,CompilableDataFlow,Component,Process,ByteSupplier
- Direct Known Subclasses:
ByteProcessMux,ByteSaH,CompilableByteStoredSignalSource
public abstract class ByteStoredSignalSource
extends AbstractProcess
implements ByteClockedSignalSource
Common base class for signal (time-dependent value) sources of
primitive type
byte 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.ByteClockedSignalSource
ByteClockedSignalSource.AbstractRandomNested 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
ConstructorsModifierConstructorDescriptionprotectedByteStoredSignalSource(Optional<ConstantRealtimeContext> realtimeContext) -
Method Summary
Modifier and TypeMethodDescriptionfinal byteReturns 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.ByteClockedSignalSource
after, compile, drain, drain, duringMethods inherited from interface eu.bandm.sig.adlib2.ByteSignalSource
abs, add, asDouble, asFloat, asInt, compileDataFlow, compileMainSignalSource, DEBUG, delayed, delayed, divide, equal, getConstantAsByte, getValueClass, greaterOrEqual, greaterThan, guard, hasConstantAsByte, invariant, lessOrEqual, lessThan, map, max, min, modulo, multiply, negate, negative, nonEqual, nonnegative, nonpositive, nonzero, positive, power, probe, publishStoredValueVariable, relateWith, sampleAndHold, stored, subtract, zero, 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 byte outThe stored value of this signal source.
-
-
Constructor Details
-
ByteStoredSignalSource
-
ByteStoredSignalSource
public ByteStoredSignalSource()
-
-
Method Details
-
getAsByte
public final byte getAsByte()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:
getAsBytein interfaceByteSignalSource- Specified by:
getAsBytein interfaceByteSupplier- Returns:
- the current value of
out
-