PCJ API
Version 1.2

bak.pcj.benchmark
Class Result

java.lang.Object
  extended bybak.pcj.benchmark.Result

public class Result
extends Object

This class represents results from benchmarks.

Since:
1.0

Constructor Summary
Result(String benchmarkId, String dataSetId, String classId, String taskId, String taskDescription, long time)
          Creates a new result.
 
Method Summary
 String getBenchmarkId()
          Returns the benchmark identifier of this result.
 String getClassId()
          Returns the class identifier of this result.
 String getDataSetId()
          Returns the data set identifier of this result.
 String getTaskDescription()
          Returns the description of the task of this result.
 String getTaskId()
          Returns the task identifier of this result.
 long getTime()
          Returns the time registered for this result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Result

public Result(String benchmarkId,
              String dataSetId,
              String classId,
              String taskId,
              String taskDescription,
              long time)
Creates a new result.

Parameters:
benchmarkId - an identifier of the benchmark that produced the result. Typically the class name.
dataSetId - an identifier of the data set against which the benchmark was run.
classId - an identifier of the class that is benchmarked. Typically the class name.
taskId - an identifier of the task that was measured. Typically the name of a method in a benchmark.
taskDescription - a description of the task.
time - the time measured for completing the task.
Throws:
NullPointerException - if benchmarkId is null; if dataSetId is null; if classId is null; if taskId is null; if taskDescription is null.
IllegalArgumentException - if time is negative.
Method Detail

getBenchmarkId

public String getBenchmarkId()
Returns the benchmark identifier of this result.

Returns:
the benchmark identifier of this result.

getTaskId

public String getTaskId()
Returns the task identifier of this result.

Returns:
the task identifier of this result.

getTaskDescription

public String getTaskDescription()
Returns the description of the task of this result.

Returns:
the description of the task of this result.

getDataSetId

public String getDataSetId()
Returns the data set identifier of this result.

Returns:
the data set identifier of this result.

getClassId

public String getClassId()
Returns the class identifier of this result.

Returns:
the class identifier of this result.

getTime

public long getTime()
Returns the time registered for this result.

Returns:
the time registered for this result.

PCJ API
Version 1.2

Report a bug or request a feature.
Further information on the development and latest release of PCJ can be found at the project homepage.

Primitive Collections for Java is released under the GNU Lesser General Public License.
Copyright © 2002, 2003 Søren Bak. All Rights Reserved.

Hosted by SourceForge.net
SourceForge.net Logo