org.opengroup.arm40.metric
Interface ArmMetricCounter32

All Superinterfaces:
ArmInterface, ArmMetric
All Known Implementing Classes:
ArmMetricCounter32

public interface ArmMetricCounter32
extends ArmMetric

Implements a 32-bit integer counter. It is the same as ARM 2.0 metric type=1 (ARM_Counter32).

Objects implementing this interface are created using ArmMetricFactory.newArmMetricCounter32(org.opengroup.arm40.metric.ArmMetricCounter32Definition).

Author:
ARM Working Group of The Open Group

Method Summary
 int get()
          Gets the counter value.
 int set(int value)
          Sets the counter value.
 
Methods inherited from interface org.opengroup.arm40.metric.ArmMetric
getDefinition
 
Methods inherited from interface org.opengroup.arm40.transaction.ArmInterface
getErrorCode, getErrorMessage, setErrorCode
 

Method Detail

get

int get()
Gets the counter value.

Returns:
the counter value.

set

int set(int 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).