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.FloatSubOperatorNested 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
FieldsModifier and TypeFieldDescriptionprotected ArrayLike<FloatSignalSource>protected List<FloatSignalSource> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSource(FloatSignalSource source) floatReturns the current value of the signal.protected voidvoidremoveSource(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:FloatSignalSourceReturns 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:
getAsFloatin interfaceFloatSignalSource- Specified by:
getAsFloatin interfaceFloatSupplier- Returns:
- the current value of the signal.
-