Class HTPoutput

java.lang.Object
  extended by HTPoutput

public class HTPoutput
extends java.lang.Object

HTPoutput
This class stores the measurement results and writes them to the results file (HTPheno_analysis_results_date--time.csv).

The data structure for storing the evaluated data:

      PLANT_IMAGE_NAME                                  parameter1      parameter2      parameter3      ...
      ==========================================================================================================
      experiment_plantnumber_timestamp_angle_side       120.0           63.3            0.0         ...
      experiment_plantnumber_timestamp_angle_side                 0.0            0.0           24.3         ...
      ...
      ...
      
As it should be able to expand arbitrarily in both dimension it is implemented as follows:
A Hashtable which does the mapping parameter --> column number. A Hashtable which does the mapping plant --> obtained data.


Constructor Summary
HTPoutput()
           
 
Method Summary
 void addDataSet(java.lang.String plantName, java.lang.String fieldName, double data)
          Adds a data set to the data structure.
 void showResults()
          Displays the results as ImageJ results table.
 void writeAsCSV(java.lang.String filename)
          Writes the complete data structure to the result file (HTPheno_analysis_results_date--time.csv).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTPoutput

public HTPoutput()
Method Detail

addDataSet

public void addDataSet(java.lang.String plantName,
                       java.lang.String fieldName,
                       double data)
Adds a data set to the data structure.

Parameters:
plantName - A String which identifies the image of the plant.
fieldName - A String which is the descriptor of the data to be saved (parameter).
data - The current obtained data for the plant and the parameter.

showResults

public void showResults()
Displays the results as ImageJ results table.


writeAsCSV

public void writeAsCSV(java.lang.String filename)
Writes the complete data structure to the result file (HTPheno_analysis_results_date--time.csv).

Parameters:
filename - A String containing a file name to store the measurement data.