org.arm4.arm40.metric

Class ArmMetricCounterFloat32

public class ArmMetricCounterFloat32 extends ArmMetric implements ArmMetricCounterFloat32

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.

Version: $Revision$ $Date$

Author: dcarter

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

Field Detail

m_counter

protected float m_counter

Constructor Detail

ArmMetricCounterFloat32

public ArmMetricCounterFloat32(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)