io.sarl.sre.janus.services.probing.probes
Class FloatFieldProbe
All Superinterfaces:
Probe<T>
class FloatFieldProbe
extends AbstractFieldProbe<T>
Probe implementation is linked to a primitive float field, or a field that could be assimilated to a float primitive. A probe is thread-safe. This probe make a buffer of the values. In order to be updated, the sync() function must be invoked. Then, the new value is read from the associated field, and the probe listeners are notified.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.12
Property Summary
Constructor Summary
Constructor and description
new(IProbeReleaseListener,String,URI,FieldAccess,Provider<T>)
Constructor.
Action Summary
Modifier and type Action and description
protected boolean areEqualValues(Float,Float)
protected java.lang.Object prepareFieldWriting(Float,Class<T>,Object)
protected java.lang.Float toT(Object,Class<T>)
Constructor Details
new(IProbeReleaseListener,String,URI,FieldAccess,Provider<T>)
new(IProbeReleaseListener,String,URI,FieldAccess,Provider<T>)
Constructor.
Parameters:
manager - the creator of this probe, and its manager.
name - the name of the probe
uri - the UI of the field.
field - the accessor to the probed field.
factories - the provider of factories tool.
Action Details
areEqualValues(Float,Float)
protected def areEqualValues(Float,Float) : boolean
prepareFieldWriting(Float,Class<T>,Object)
protected def prepareFieldWriting(Float,Class<T>,Object) : java.lang.Object
toT(Object,Class<T>)
protected def toT(Object,Class<T>) : java.lang.Float