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

java.lang.Object
  extended by org.eclipse.test.internal.performance.results.AbstractResults
      extended by org.eclipse.test.internal.performance.results.BuildResults
All Implemented Interfaces:
java.lang.Comparable

public class BuildResults
extends AbstractResults

Class providing numbers of a scenario running on a specific configuration at a specific time (for example 'I20070615-1200').


Field Summary
 
Fields inherited from class org.eclipse.test.internal.performance.results.AbstractResults
BOXES, CONFIGS, DEFAULT_DIM, SUPPORTED_DIMS, VERSION, VERSION_REF
 
Method Summary
 int compareTo(java.lang.Object obj)
          Compare build results using the date of the build.
 java.lang.String getComment()
          Returns the comment associated with the scenario for the current build.
 long getCount()
          Return the number of stored values for the default dimension
 long getCount(int dim_id)
          Return the number of stored values for the given dimension.
 java.lang.String getDate()
          Returns the date of the build which is a part of its name.
 double getDeviation()
          Returns the standard deviation of the default dimension computed while running the scenario for the current build.
 double getDeviation(int dim_id)
          Returns the standard deviation of the given dimension computed while running the scenario for the current build.
 Dim[] getDimensions()
          Returns the dimensions supported for the current build.
 double getError()
          Return the error computed while storing values for the default dimension
 double getError(int dim_id)
          Return the error computed while storing values for the given dimension.
 java.lang.String getFailure()
          Return the failure message which may happened on this scenario while running the current build
 int getSummaryKind()
          Returns the kind of summary for the scenario of the current build.
 double getValue()
          Return the value of the performance result stored for the default dimension of the current build.
 double getValue(int dim_id)
          Return the value of the performance result stored for the given dimension of the current build.
 boolean hadValues()
          Returns whether the current build had several values stored in database.
 boolean hasGlobalSummary()
          Returns whether the build has a global summary or not.
 boolean hasSummary()
          Returns whether the build has a summary or not.
 boolean isBaseline()
          Returns whether the build is a baseline build or not.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.test.internal.performance.results.AbstractResults
copyFile, equals, getBuildDate, getBuildDate, getChildren, getName, getParent, getResults, hashCode, size, timeChrono, timeEnd, timeString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(java.lang.Object obj)
Compare build results using the date of the build.

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

getComment

public java.lang.String getComment()
Returns the comment associated with the scenario for the current build.

Returns:
The comment associated with the scenario for the current build or null if no comment was stored for it.

getCount

public long getCount()
Return the number of stored values for the default dimension

Returns:
the number of stored values for the default dimension

getCount

public long getCount(int dim_id)
Return the number of stored values for the given dimension.

Parameters:
dim_id - The id of the dimension (see Dim.getId())
Returns:
the number of stored values for the given dimension

getDate

public java.lang.String getDate()
Returns the date of the build which is a part of its name.

Returns:
The date of the build as yyyyMMddHHmm

getDeviation

public double getDeviation()
Returns the standard deviation of the default dimension computed while running the scenario for the current build.

Returns:
The value of the standard deviation

getDeviation

public double getDeviation(int dim_id)
Returns the standard deviation of the given dimension computed while running the scenario for the current build.

Parameters:
dim_id - The id of the dimension (see Dim.getId())
Returns:
The value of the standard deviation

getDimensions

public Dim[] getDimensions()
Returns the dimensions supported for the current build.

Returns:
An array of dimensions.

getSummaryKind

public int getSummaryKind()
Returns the kind of summary for the scenario of the current build.

Returns:
-1 if the scenario has no summary, 1 if it's a global summary, 0 otherwise.

hadValues

public boolean hadValues()
Returns whether the current build had several values stored in database.

Returns:
true if the measure was committed several times, false otherwise.

getError

public double getError()
Return the error computed while storing values for the default dimension

Returns:
the error of the measures stored for the default dimension

getError

public double getError(int dim_id)
Return the error computed while storing values for the given dimension.

Parameters:
dim_id - The id of the dimension (see Dim.getId())
Returns:
the error of the measures stored for the given dimension

getFailure

public java.lang.String getFailure()
Return the failure message which may happened on this scenario while running the current build

Returns:
The failure message or null if the scenario passed.

getValue

public double getValue(int dim_id)
Return the value of the performance result stored for the given dimension of the current build.

Parameters:
dim_id - The id of the dimension (see Dim.getId())
Returns:
The value of the performance result

getValue

public double getValue()
Return the value of the performance result stored for the default dimension of the current build.

Returns:
The value of the performance result

isBaseline

public boolean isBaseline()
Returns whether the build is a baseline build or not.

Returns:
true if the build name starts with the baseline prefix (see PerformanceResults.getBaselinePrefix() or false otherwise.

hasSummary

public boolean hasSummary()
Returns whether the build has a summary or not. Note that the summary may be global or not.

Returns:
true if the summary kind is equals to 0 or 1 false otherwise.

hasGlobalSummary

public boolean hasGlobalSummary()
Returns whether the build has a global summary or not.

Returns:
true if the summary kind is equals to 1 false otherwise.

toString

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