de.jstacs.results
Class NumericalResultSet

java.lang.Object
  extended by de.jstacs.results.ResultSet
      extended by de.jstacs.results.NumericalResultSet
All Implemented Interfaces:
Storable
Direct Known Subclasses:
MeanResultSet

public class NumericalResultSet
extends ResultSet

Class for a set of numerical result values, which are all of the type NumericalResult.

Author:
Jan Grau

Field Summary
 
Fields inherited from class de.jstacs.results.ResultSet
results
 
Constructor Summary
NumericalResultSet(LinkedList<? extends NumericalResult> results)
          Constructs a NumericalResultSet from a LinkedList of NumericalResults.
NumericalResultSet(NumericalResult result)
          Constructs a NumericalResultSet containing one NumericalResult.
NumericalResultSet(NumericalResult[]... results)
          Constructs a NumericalResultSet from an array of NumericalResults.
NumericalResultSet(StringBuffer representation)
          This is the constructor for Storable.
 
Method Summary
 NumericalResult getResultAt(int index)
          Returns the NumericalResult number index.
 
Methods inherited from class de.jstacs.results.ResultSet
findColumn, fromXML, getNumberOfResults, getResults, toString, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumericalResultSet

public NumericalResultSet(NumericalResult result)
Constructs a NumericalResultSet containing one NumericalResult.

Parameters:
result - the result to be contained

NumericalResultSet

public NumericalResultSet(NumericalResult[]... results)
Constructs a NumericalResultSet from an array of NumericalResults.

Parameters:
results - the results

NumericalResultSet

public NumericalResultSet(LinkedList<? extends NumericalResult> results)
Constructs a NumericalResultSet from a LinkedList of NumericalResults.

Parameters:
results - the LikedList of NumericalResults

NumericalResultSet

public NumericalResultSet(StringBuffer representation)
                   throws NonParsableException
This is the constructor for Storable.

Parameters:
representation - the xml representation
Throws:
NonParsableException - if the representation could not be parsed.
Method Detail

getResultAt

public NumericalResult getResultAt(int index)
Returns the NumericalResult number index.

Overrides:
getResultAt in class ResultSet
Parameters:
index - the index of the Result
Returns:
the result