public class ArmMetricCounterFloat32 extends ArmMetric implements ArmMetricCounterFloat32
ARM_CntrDivr32
). 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.newArmMetricCounterFloat32(org.opengroup.arm40.metric.ArmMetricCounterFloat32Definition)
.Modifier and Type | Field and Description |
---|---|
protected float |
m_counter |
m_errorCode, m_factory
Constructor and Description |
---|
ArmMetricCounterFloat32(ArmMetricDefinition definition)
Create ARM Metric.
|
Modifier and Type | Method and Description |
---|---|
float |
get()
Gets the counter value.
|
int |
set(float value)
Sets the counter value.
|
getDefinition
getErrorCode, getErrorMessage, getFactory, setErrorCode, setFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefinition
getErrorCode, getErrorMessage, setErrorCode
public ArmMetricCounterFloat32(ArmMetricDefinition definition)
definition
- the descriptive metadata (name, units, usage, ID) for the metricpublic float get()
ArmMetricCounterFloat32
get
in interface ArmMetricCounterFloat32
public int set(float value)
ArmMetricCounterFloat32
set
in interface ArmMetricCounterFloat32
value
- new counter value.ArmInterface
).