jcolibri.evaluation
Class EvaluationReport

java.lang.Object
  extended by jcolibri.evaluation.EvaluationReport
Direct Known Subclasses:
DetailedEvaluationReport

public class EvaluationReport
extends java.lang.Object

This class stores the result of an evaluation. It is configured and filled by an Evaluator. This info is also used to represent graphically the result of an evaluation. The stored information can be:

Version:
2.0
Author:
Juan A. Recio García

Field Summary
protected  java.util.Hashtable<java.lang.String,java.util.Vector<java.lang.Double>> data
          Stores the series info
protected  java.util.Hashtable<java.lang.String,java.lang.String> other
          Stores other info
 
Constructor Summary
EvaluationReport()
          Default constructor
 
Method Summary
 void addDataToSeries(java.lang.String label, java.lang.Double value)
           
 boolean checkData()
          Checks if the evaluation series are correct.
 int getNumberOfCycles()
           
 java.lang.String getOtherData(java.lang.String label)
           
 java.lang.String[] getOtherLabels()
           
 java.util.Vector<java.lang.Double> getSeries(java.lang.String label)
          Gets the evaluation info identified by the label
 java.lang.String[] getSeriesLabels()
          Returns the name of the contained evaluation series
 double getTimePerCycle()
           
 long getTotalTime()
           
 void putOtherData(java.lang.String label, java.lang.String data)
           
 void setNumberOfCycles(int numberOfCycles)
           
 void setSeries(java.lang.String label, java.util.Vector<java.lang.Double> evaluation)
          Stes the evaluation info
 void setTotalTime(long totalTime)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

protected java.util.Hashtable<java.lang.String,java.util.Vector<java.lang.Double>> data
Stores the series info


other

protected java.util.Hashtable<java.lang.String,java.lang.String> other
Stores other info

Constructor Detail

EvaluationReport

public EvaluationReport()
Default constructor

Method Detail

getSeries

public java.util.Vector<java.lang.Double> getSeries(java.lang.String label)
Gets the evaluation info identified by the label

Parameters:
label - Identifies the evaluation serie.

setSeries

public void setSeries(java.lang.String label,
                      java.util.Vector<java.lang.Double> evaluation)
Stes the evaluation info

Parameters:
label - Identifier of the info
evaluation - Evaluation result

addDataToSeries

public void addDataToSeries(java.lang.String label,
                            java.lang.Double value)

getSeriesLabels

public java.lang.String[] getSeriesLabels()
Returns the name of the contained evaluation series


putOtherData

public void putOtherData(java.lang.String label,
                         java.lang.String data)

getOtherData

public java.lang.String getOtherData(java.lang.String label)

getOtherLabels

public java.lang.String[] getOtherLabels()

getNumberOfCycles

public int getNumberOfCycles()

setNumberOfCycles

public void setNumberOfCycles(int numberOfCycles)

getTotalTime

public long getTotalTime()

setTotalTime

public void setTotalTime(long totalTime)

getTimePerCycle

public double getTimePerCycle()

checkData

public boolean checkData()
Checks if the evaluation series are correct. This is: all them must have the same length


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es