public interface FloatVariable extends FloatSignalSource, FloatConsumer
float
that can be read synchronously and written asynchronously.FloatSignalSource.CompilableFloatBinaryOperator, FloatSignalSource.FloatAddOperator, FloatSignalSource.FloatDivOperator, FloatSignalSource.FloatMultOperator, FloatSignalSource.FloatSubOperator
SignalSource.AddOperator, SignalSource.CompilableBinaryOperator, SignalSource.Constant<A>, SignalSource.DivOperator, SignalSource.MultOperator, SignalSource.SubOperator
Modifier and Type | Method and Description |
---|---|
void |
accept(float value)
Submits a new value for the variable to be considered eventually.
|
default FloatControl |
asControl() |
static FloatVariable |
exact(float initialValue) |
add, check, clip, clocked, compileDataFlow, constant, div, get, getAsFloat, guard, logger, logger, lowerLogSpread, map, mult, project, project, project, sub, upperLogSpread, zipWith, zipWith
void accept(float value)
Submitted values may be subject to processing, at discretion of the implementation class. There is no general guarantee that the submitted value will ever be emitted exactly.
Submissions are treated asynchronously but sequentially: the effect of each submission can occur at an arbitrary later time, but later submissions always eventually override earlier ones.
accept
in interface FloatConsumer
value
- the new value to set eventually.static FloatVariable exact(float initialValue)
default FloatControl asControl()