|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.arm4.arm40.transaction.ArmInterface
org.arm4.arm40.metric.ArmMetric
org.arm4.arm40.metric.ArmMetricGaugeFloat32
public class 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.
ArmMetricFactory.newArmMetricGaugeFloat32(org.opengroup.arm40.metric.ArmMetricGaugeFloat32Definition).
| Field Summary | |
|---|---|
protected float |
m_gauge
|
| Fields inherited from class org.arm4.arm40.transaction.ArmInterface |
|---|
m_errorCode, m_factory |
| Constructor Summary | |
|---|---|
ArmMetricGaugeFloat32(ArmMetricDefinition definition)
Create ARM Metric. |
|
| Method Summary | |
|---|---|
float |
get()
Gets the gauge value. |
int |
set(float value)
Sets the gauge value. |
| Methods inherited from class org.arm4.arm40.metric.ArmMetric |
|---|
getDefinition |
| Methods inherited from class org.arm4.arm40.transaction.ArmInterface |
|---|
getErrorCode, getErrorMessage, getFactory, setErrorCode, setFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opengroup.arm40.metric.ArmMetric |
|---|
getDefinition |
| Methods inherited from interface org.opengroup.arm40.transaction.ArmInterface |
|---|
getErrorCode, getErrorMessage, setErrorCode |
| Field Detail |
|---|
protected float m_gauge
| Constructor Detail |
|---|
public ArmMetricGaugeFloat32(ArmMetricDefinition definition)
definition - the descriptive metadata (name, units, usage, ID) for the metric| Method Detail |
|---|
public float get()
ArmMetricGaugeFloat32
get in interface ArmMetricGaugeFloat32public int set(float value)
ArmMetricGaugeFloat32
set in interface ArmMetricGaugeFloat32value - new gauge value.
ArmInterface).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||