org.objectweb.proactive.benchmarks.timit.result
Class BenchmarkResultWriter

java.lang.Object
  extended by org.objectweb.proactive.benchmarks.timit.result.BenchmarkResultWriter

public class BenchmarkResultWriter
extends java.lang.Object

This class generate benchmark statistics result files from values given by the TimIt reductor. Generated file will be an XML file

Author:
Brian Amedro, Vladimir Bodnartchouk

Constructor Summary
BenchmarkResultWriter(java.lang.String filename)
          Construct a new BenchmarkResultWriter from his filename
 
Method Summary
 void addResult(BenchmarkStatistics bstats, java.lang.String name)
          Add a new result to write to the file.
 org.jdom.Element getRoot()
           
 void removeExtremums()
          This method remove benchmarks that have extrem total time values.
 void writeResult()
          Write results into the file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BenchmarkResultWriter

public BenchmarkResultWriter(java.lang.String filename)
Construct a new BenchmarkResultWriter from his filename

Parameters:
filename - the name of the file to create
Method Detail

getRoot

public org.jdom.Element getRoot()
Returns:
the root Element of the XML result file

addResult

public void addResult(BenchmarkStatistics bstats,
                      java.lang.String name)
Add a new result to write to the file. Output file is updated every time you invoke this method.

Parameters:
bstats - the BenchmarkStatistics containing all results
name - the name of the current benchmark execution

writeResult

public void writeResult()
Write results into the file


removeExtremums

public void removeExtremums()
This method remove benchmarks that have extrem total time values. (ie. it remove the min and the max)



Copyright 2001-2007 INRIA All Rights Reserved.