net.sf.jbenchmark.util
Class StatisticsSummary

java.lang.Object
  extended bynet.sf.jbenchmark.util.StatisticsSummary

public class StatisticsSummary
extends java.lang.Object

Represents an abstraction of statistics that might be reported on. Publishers should take this and format it in the format that they need to and then write it to whatever output that they want.

Version:
$Id: StatisticsSummary.java,v 1.3 2004/07/01 07:11:49 twpatkua Exp $
Author:
Patrick Kua

Constructor Summary
StatisticsSummary()
          Default constructor
StatisticsSummary(java.lang.String[] columnHeadings, java.text.Format[] columnFormats, java.lang.Object[] columnValues)
          Each column has a heading, a format and a set of values.
 
Method Summary
 java.text.Format[] getFormats()
          Get the formatting for each of the values that appear.
 java.lang.String[] getHeadings()
          Get the list of headings for the statistics.
 java.lang.Object[] getValues()
          Get the values that are to be reported on for the summary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsSummary

public StatisticsSummary()
Default constructor


StatisticsSummary

public StatisticsSummary(java.lang.String[] columnHeadings,
                         java.text.Format[] columnFormats,
                         java.lang.Object[] columnValues)
Each column has a heading, a format and a set of values. All arrays should be the same length and should not be null.

Parameters:
columnHeadings - Headings for each of the columns.
columnFormats - Formats for each of the column values (elements can be null if no formatting required).
columnValues - Values for the columns.
Method Detail

getHeadings

public java.lang.String[] getHeadings()
Get the list of headings for the statistics.


getFormats

public java.text.Format[] getFormats()
Get the formatting for each of the values that appear.


getValues

public java.lang.Object[] getValues()
Get the values that are to be reported on for the summary.