org.eclipse.test.internal.performance.results
Class AbstractResults

java.lang.Object
  extended by org.eclipse.test.internal.performance.results.AbstractResults
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
BuildResults, ComponentResults, ConfigResults, PerformanceResults, ScenarioResults

public abstract class AbstractResults
extends java.lang.Object
implements java.lang.Comparable

Abstract class to store performance results. Each results gives access to specific children depending on model.


Field Summary
static java.lang.String[] BOXES
          The list of possible test boxes.
static java.lang.String[] CONFIGS
          The list of possible configurations.
static Dim DEFAULT_DIM
          The default dimension used to display results (typically in fingerprints).
static Dim[] SUPPORTED_DIMS
          The list of supported dimensions.
static java.lang.String VERSION
           
static java.lang.String VERSION_REF
           
 
Method Summary
 int compareTo(java.lang.Object obj)
          Compare the results to the given one using the name.
static boolean copyFile(java.io.File src, java.io.File dest)
          Copy a file to another location.
 boolean equals(java.lang.Object obj)
          Returns whether two results are equals using the name to compare them.
static java.lang.String getBuildDate(java.lang.String buildName)
           
static java.lang.String getBuildDate(java.lang.String buildName, java.lang.String baselinePrefix)
           
 AbstractResults[] getChildren()
          Return an array built on the current results children list.
 java.lang.String getName()
          Returns the name of the results object.
 AbstractResults getParent()
          Returns the parent
 java.util.Iterator getResults()
          Return the children list of the current results.
 int hashCode()
           
 int size()
           
static java.lang.String timeChrono(long time)
           
static java.lang.String timeEnd(long time)
           
static java.lang.String timeString(long time)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SUPPORTED_DIMS

public static final Dim[] SUPPORTED_DIMS
The list of supported dimensions.

Currently only InternalDimensions.ELAPSED_PROCESS and InternalDimensions.CPU_TIME.


DEFAULT_DIM

public static final Dim DEFAULT_DIM
The default dimension used to display results (typically in fingerprints).

Currently InternalDimensions.ELAPSED_PROCESS


CONFIGS

public static final java.lang.String[] CONFIGS
The list of possible configurations.

Only used if no specific configurations are specified (see PerformanceResults.readAll(String, String[][], String, File, int, org.eclipse.core.runtime.IProgressMonitor).


BOXES

public static final java.lang.String[] BOXES
The list of possible test boxes.

Only used if no specific configurations are specified (see PerformanceResults.readAll(String, String[][], String, File, int, org.eclipse.core.runtime.IProgressMonitor).

Note that this is a copy of the the property "eclipse.perf.config.descriptors" defined in org.eclipse.releng.eclipsebuilder/eclipse/helper.xml file


VERSION_REF

public static final java.lang.String VERSION_REF

VERSION

public static final java.lang.String VERSION
Method Detail

copyFile

public static boolean copyFile(java.io.File src,
                               java.io.File dest)
Copy a file to another location.

Parameters:
src - the source file.
dest - the destination.
Returns:
true if the file was successfully copied, false otherwise.

getBuildDate

public static java.lang.String getBuildDate(java.lang.String buildName)

getBuildDate

public static java.lang.String getBuildDate(java.lang.String buildName,
                                            java.lang.String baselinePrefix)

timeString

public static java.lang.String timeString(long time)

timeChrono

public static java.lang.String timeChrono(long time)

timeEnd

public static java.lang.String timeEnd(long time)

compareTo

public int compareTo(java.lang.Object obj)
Compare the results to the given one using the name.

Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)

equals

public boolean equals(java.lang.Object obj)
Returns whether two results are equals using the name to compare them.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The results to compare with
Returns:
true if the name are equals, false otherwise
See Also:
Comparable.compareTo(java.lang.Object)

getChildren

public AbstractResults[] getChildren()
Return an array built on the current results children list.

Returns:
An array of the children list

getName

public java.lang.String getName()
Returns the name of the results object.

Returns:
The name of the results

getParent

public AbstractResults getParent()
Returns the parent

Returns:
The parent

getResults

public java.util.Iterator getResults()
Return the children list of the current results.

Returns:
An iterator on the children list

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

size

public int size()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object