TPTP 4.4.0 Platform Project
Public API Specification

org.eclipse.hyades.execution.trace.util
Class RecordArray

java.lang.Object
  extended byorg.eclipse.hyades.execution.trace.util.RecordArray

public class RecordArray
extends java.lang.Object

This is the record for an array of variables.


Constructor Summary
RecordArray(java.lang.String event, java.lang.Class elementClass, java.lang.Object[] elementValues)
          Creates an array of elements using the elementClass and elementValues.
RecordArray(java.lang.String event, int[] elementIds, java.lang.Class[] elementClasses, java.lang.Object[] elementValues)
          Creates a heterogeneous array using the elementNames, elementClasses, and elementValues.
 
Method Summary
 java.lang.String toString()
          Converts this record into a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecordArray

public RecordArray(java.lang.String event,
                   java.lang.Class elementClass,
                   java.lang.Object[] elementValues)
Creates an array of elements using the elementClass and elementValues. If elementValues is null, it will be treated as an empty array.

Parameters:
event - the name of the event
elementClass - the class of each element
elementValues - an array of the values

RecordArray

public RecordArray(java.lang.String event,
                   int[] elementIds,
                   java.lang.Class[] elementClasses,
                   java.lang.Object[] elementValues)
Creates a heterogeneous array using the elementNames, elementClasses, and elementValues. All three parameters must be of the same length, or all parameters will be ignored.

Parameters:
event - the name of the event
elementIds - an array of the element IDs
elementClasses - the class of each element
elementValues - an array of the values
Method Detail

toString

public java.lang.String toString()
Converts this record into a string.

Returns:
this record in the string format

TPTP 4.4.0 Platform Project
Public API Specification