|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bak.pcj.benchmark.Report
This class represents reports of results from benchmarks. Results are collected in a report that can finally be transformed to some external representation.
Constructor Summary | |
Report()
Creates a new report for benchmark results. |
Method Summary | |
void |
addResult(Result result)
Adds a result to this report. |
void |
clearResults()
Clears the results of this report. |
String |
getProperty(String key)
Returns a property of this report. |
Collection |
getResults()
Returns the results of this report in no particular order. |
void |
putProperty(String key,
String value)
Adds a property to this report. |
void |
readResults(Reader in)
Reads results into this report from a specified reader. |
void |
writeHTML(Writer out)
Formats this report as HTML on a specified writer. |
void |
writeResults(Writer out)
Writes the results of this report to a specified writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Report()
Method Detail |
public void addResult(Result result)
result
- the result to add.
NullPointerException
- if result is null.public Collection getResults()
public void clearResults()
public void putProperty(String key, String value)
key
- the key of the property.value
- the value of the property. If the value is
null, the property is removed from
the report.
NullPointerException
- if key is null.public String getProperty(String key)
key
- the key of the property to return.
NullPointerException
- if key is null.public void readResults(Reader in) throws IOException
in
- the reader from which to read results.
IOException
- if an error occurs reading from out.public void writeResults(Writer out) throws IOException
out
- the writer on which to write the results.
IOException
- if an error occurs writing to out.public void writeHTML(Writer out) throws IOException
out
- the writer on which to format this report.
NullPointerException
- if out is null.
IOException
- if an error occurs writing to out.
|
PCJ API Version 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |