org.arm4.arm40.metric
Class ArmMetricGroupDefinition

java.lang.Object
  extended by org.arm4.arm40.transaction.ArmInterface
      extended by org.arm4.arm40.metric.ArmMetricGroupDefinition
All Implemented Interfaces:
ArmMetricGroupDefinition, ArmInterface

public class ArmMetricGroupDefinition
extends ArmInterface
implements ArmMetricGroupDefinition

ArmMetricGroupDefinition is used to bind ArmMetricDefinition objects to an ArmTransactionWithMetricsDefinition or ArmTranReportWithMetricsDefinition object. Instances of ArmMetricGroupDefinition are created using the newArmMetricGroupDefinition() method of ArmMetricFactory.

Version:
$Revision$ $Date$
Author:
dcarter

Field Summary
protected  ArmMetricDefinition[] m_definitions
           
 
Fields inherited from class org.arm4.arm40.transaction.ArmInterface
m_errorCode, m_factory
 
Constructor Summary
ArmMetricGroupDefinition(ArmMetricDefinition[] definitions)
          Create ARM Metric Group Definition.
 
Method Summary
 ArmMetricDefinition getMetricDefinition(int index)
           
 
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.transaction.ArmInterface
getErrorCode, getErrorMessage, setErrorCode
 

Field Detail

m_definitions

protected ArmMetricDefinition[] m_definitions
Constructor Detail

ArmMetricGroupDefinition

public ArmMetricGroupDefinition(ArmMetricDefinition[] definitions)
Create ARM Metric Group Definition.

Parameters:
definitions -
Method Detail

getMetricDefinition

public ArmMetricDefinition getMetricDefinition(int index)
Specified by:
getMetricDefinition in interface ArmMetricGroupDefinition
Parameters:
index - is the index into the ArmMetricDefinition array.

It must have a value in the range 0:6. To remain consistent with ARM 2.0, any ArmMetricDefinition subclass except ArmMetricString32Definition can be assigned to elements 0:5 and only ArmMetricString32Definition can be assigned to element 6.

Returns:
the metric at the array index. This value may be null.