public final class FloatBoundedQuantization.Variable extends Object implements FloatVariable
BoundedRangeModel
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.
|
float |
getAsFloat()
Returns the current value of the signal.
|
BoundedRangeModel |
getModel() |
FloatBoundedQuantization |
getQuantization() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asControl, exact
public FloatBoundedQuantization getQuantization()
public BoundedRangeModel getModel()
public float getAsFloat()
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.
getAsFloat
in interface FloatSignalSource
getAsFloat
in interface FloatSupplier
public 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
accept
in interface FloatVariable
value
- the new value to set eventually.