PCJ API
Version 1.2

bak.pcj.benchmark
Class ResultCollector

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

public class ResultCollector
extends Object

This class represents a collector of benchmark results. The purpose of the class is to collect results from different benchmarks in one report. This class may be run from the command line.

Since:
1.0

Constructor Summary
ResultCollector()
          Creates a new result collector on a new report.
ResultCollector(Report report)
          Creates a new result collector on a specified report.
 
Method Summary
 void collect(Reader in)
          Collects the results of a report from a specified reader.
 void collect(String filename)
          Collects the results of a report from a specified file.
 Report getReport()
          Returns the report in which the results are collected.
static void main(String[] args)
          Runs a result collector on a set of files and formats a report as HTML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultCollector

public ResultCollector(Report report)
Creates a new result collector on a specified report. All collected results will be added to the report.

Parameters:
report - the report in which to collect the results.
Throws:
NullPointerException - if report is null.

ResultCollector

public ResultCollector()
Creates a new result collector on a new report.

Method Detail

collect

public void collect(Reader in)
             throws IOException
Collects the results of a report from a specified reader. The reader should deliver data on the form output by reports.

Parameters:
in - the reader from which to collect the results.
Throws:
IOException
See Also:
Report.writeResults(Writer out), collect(String)

collect

public void collect(String filename)
             throws IOException
Collects the results of a report from a specified file. The file should contain data on the form output by reports.

Parameters:
filename - the name of the file from which to collect the results.
Throws:
IOException
See Also:
Report.writeResults(Writer out), collect(Reader)

getReport

public Report getReport()
Returns the report in which the results are collected.

Returns:
the report in which the results are collected.

main

public static void main(String[] args)
Runs a result collector on a set of files and formats a report as HTML. The first argument is the name of a file on which to write the report. The second argument is a title for the report. The following arguments are names of result files as output by reports.

Parameters:
args - as specified above.

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