Package eu.bandm.sig.adlib
Class FloatAdder
java.lang.Object
eu.bandm.sig.adlib.FloatAdder
- All Implemented Interfaces:
CompilableDataFlow
,FloatSignalSource
,FloatSupplier
,SignalSource<Float>
,Supplier<Float>
- Direct Known Subclasses:
BoundedFloatAdder
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib.FloatSignalSource
FloatSignalSource.CompilableFloatBinaryOperator, FloatSignalSource.FloatAddOperator, FloatSignalSource.FloatDivOperator, FloatSignalSource.FloatMultOperator, FloatSignalSource.FloatSubOperator
Nested classes/interfaces inherited from interface eu.bandm.sig.adlib.SignalSource
SignalSource.AddOperator, SignalSource.CompilableBinaryOperator, SignalSource.Constant<A>, SignalSource.DivOperator, SignalSource.MultOperator, SignalSource.SubOperator
-
Field Summary
Modifier and TypeFieldDescriptionprotected ArrayLike<FloatSignalSource>
protected List<FloatSignalSource>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSource
(FloatSignalSource source) float
Returns the current value of the signal.protected void
void
removeSource
(FloatSignalSource source)
-
Field Details
-
sources
-
snapshot
-
-
Constructor Details
-
FloatAdder
public FloatAdder()
-
-
Method Details
-
addSource
-
removeSource
-
makeSnapshot
protected void makeSnapshot() -
getAsFloat
public float getAsFloat()Description copied from interface:FloatSignalSource
Returns the current value of the signal.Any implementation of this method should be stateless; its invocation should not have any side effect on the emitter or the observer, except for real time passing until its completion.
- Specified by:
getAsFloat
in interfaceFloatSignalSource
- Specified by:
getAsFloat
in interfaceFloatSupplier
- Returns:
- the current value of the signal.
-