org.opengroup.arm40.metric
Interface ArmMetricCounterFloat32
- All Superinterfaces:
- ArmInterface, ArmMetric
- All Known Implementing Classes:
- ArmMetricCounterFloat32
public interface ArmMetricCounterFloat32
- extends ArmMetric
Implements a 32-bit floating-point counter.
It is roughly equivalent to the ARM 2.0 metric type=3
(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)
.
- Author:
- ARM Working Group of The Open Group
Method Summary |
float |
get()
Gets the counter value. |
int |
set(float value)
Sets the counter value. |
get
float get()
- Gets the counter value.
- Returns:
- the counter value.
set
int set(float value)
- Sets the counter value.
- Parameters:
value
- new counter value.
- Returns:
- 0 on sucess; otherwise, a non-zero error code is returned
(as specified in
ArmInterface
).