org.arm4.arm40.metric

Class ArmMetricGaugeFloat32

public class ArmMetricGaugeFloat32 extends ArmMetric implements ArmMetricGaugeFloat32

Implements a 32-bit floating-point gauge. It is roughly equivalent to the ARM 2.0 metric type=6 (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.

Author: David Carter

Field Summary
protected floatm_gauge
Constructor Summary
ArmMetricGaugeFloat32(ArmMetricDefinition definition)
Create ARM Metric.
Method Summary
floatget()
intset(float value)

Field Detail

m_gauge

protected float m_gauge

Constructor Detail

ArmMetricGaugeFloat32

public ArmMetricGaugeFloat32(ArmMetricDefinition definition)
Create ARM Metric.

Parameters: definition the descriptive metadata (name, units, usage, ID) for the metric

Method Detail

get

public float get()

set

public int set(float value)