public final class FloatBoundedQuantization.Variable extends Object implements FloatVariable
BoundedRangeModelFloatSignalSource.CompilableFloatBinaryOperator, FloatSignalSource.FloatAddOperator, FloatSignalSource.FloatDivOperator, FloatSignalSource.FloatMultOperator, FloatSignalSource.FloatSubOperatorSignalSource.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, waitasControl, exactpublic 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 FloatSignalSourcegetAsFloat in interface FloatSupplierpublic 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 FloatConsumeraccept in interface FloatVariablevalue - the new value to set eventually.