public class ArmMetricGaugeFloat32 extends ArmMetric implements ArmMetricGaugeFloat32
ARM_GaugeDivr32
). Instead of providing two integer values that
can be divided to produce a floating-point value, which is what was done in
the C bindings for ARM 2.0 and ARM 4.0, a floating-point value is provided
directly.
Objects implementing this interface are created using
ArmMetricFactory.newArmMetricGaugeFloat32(org.opengroup.arm40.metric.ArmMetricGaugeFloat32Definition)
.Modifier and Type | Field and Description |
---|---|
protected float |
m_gauge |
m_errorCode, m_factory
Constructor and Description |
---|
ArmMetricGaugeFloat32(ArmMetricDefinition definition)
Create ARM Metric.
|
Modifier and Type | Method and Description |
---|---|
float |
get()
Gets the gauge value.
|
int |
set(float value)
Sets the gauge value.
|
getDefinition
getErrorCode, getErrorMessage, getFactory, setErrorCode, setFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefinition
getErrorCode, getErrorMessage, setErrorCode
public ArmMetricGaugeFloat32(ArmMetricDefinition definition)
definition
- the descriptive metadata (name, units, usage, ID) for the metricpublic float get()
ArmMetricGaugeFloat32
get
in interface ArmMetricGaugeFloat32
public int set(float value)
ArmMetricGaugeFloat32
set
in interface ArmMetricGaugeFloat32
value
- new gauge value.ArmInterface
).