public class FloatControl extends Object
Many signals, in particular those implemented by subclasses of
ClockedFloatSignalSource
, attain a meaningful value only at
the first clock event, that is, too late for initialization of the
dataflow network.
Components that take parameters which can change dynamically are encouraged to:
FloatControl
;initialValue
for initialization;source
to the setter method at each clock event, before computing
their own value.Note that the invocation of the setter method is not an event; implementations are explicitly allowed to do nothing if the new parameter value is identical to the old one.
Modifier and Type | Field and Description |
---|---|
float |
initialValue
The initial value.
|
FloatSignalSource |
source
The object that emits subsequent values.
|
Constructor and Description |
---|
FloatControl(float value) |
FloatControl(float initialValue,
FloatSignalSource source) |
FloatControl(FloatSignalSource source) |
public final float initialValue
public final FloatSignalSource source
public FloatControl(float value)
public FloatControl(FloatSignalSource source)
public FloatControl(float initialValue, FloatSignalSource source)
public Realtime bind(FloatConsumer target)