xmlgp
Class Experiment

java.lang.Object
  extended by xmlgp.Experiment

public class Experiment
extends java.lang.Object

This class is the data holder for Experiment.
It has setters and getters to all the attributes of Experiment.

It also has the annotations which will be used by jsefa to deserialize experiment XML element to experiment object and to serialize experiment object to experiment XML element.

Author:
dharani

Constructor Summary
Experiment()
           
 
Method Summary
 java.lang.String getDate()
          Retrieves the date on which the experiment is done.
 java.lang.String getDescription()
          Retrieves the description of the experiment.
 int getId()
          Retrieves the id of the experiment.
 java.util.List<Statistics> getStatistics()
          Retrieves the list of statistical measures of the experiment.
 java.util.List<Treatment> getTreatments()
          Retrieves the list of treatments contained in the experiment.
 void setAttributes(int id, java.lang.String date, java.lang.String description, java.util.List<Statistics> statistics, java.util.List<Treatment> treatments)
          Sets all the attributes of this class.
 void setDate(java.lang.String date)
          Sets the date on which the experiment is done.
 void setDescription(java.lang.String description)
          Sets the description of the experiment.
 void setId(int id)
          Sets the id of the experiment.
 void setStatistics(java.util.List<Statistics> statistics)
          Sets the list of statistical measures of the experiment.
 void setTreatments(java.util.List<Treatment> treatments)
          Sets the list of treatments contained in the experiment.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Experiment

public Experiment()
Method Detail

setAttributes

public void setAttributes(int id,
                          java.lang.String date,
                          java.lang.String description,
                          java.util.List<Statistics> statistics,
                          java.util.List<Treatment> treatments)
Sets all the attributes of this class. This method is just for convenience to set all attributes at once instead of setting one by one. Null is passed if an attribute doesn't need to be set.

Parameters:
id - the id of the experiment
date - the date to set
description - the description of the experiment to set
statistics - the list of statistics to set
treatments - the list of treatments to set

getId

public int getId()
Retrieves the id of the experiment.

Returns:
the id of the experiment

setId

public void setId(int id)
Sets the id of the experiment.

Parameters:
id - the id of the experiment

getDate

public java.lang.String getDate()
Retrieves the date on which the experiment is done.

Returns:
the date on which the experiment is done

setDate

public void setDate(java.lang.String date)
Sets the date on which the experiment is done.

Parameters:
date - the date to set

getDescription

public java.lang.String getDescription()
Retrieves the description of the experiment.

Returns:
the description of the experiment

setDescription

public void setDescription(java.lang.String description)
Sets the description of the experiment.

Parameters:
description - the description of the experiment to set

getStatistics

public java.util.List<Statistics> getStatistics()
Retrieves the list of statistical measures of the experiment.

Returns:
the list of statistical measures of the experiment

setStatistics

public void setStatistics(java.util.List<Statistics> statistics)
Sets the list of statistical measures of the experiment.

Parameters:
statistics - the list of statistical measures to set

getTreatments

public java.util.List<Treatment> getTreatments()
Retrieves the list of treatments contained in the experiment.

Returns:
the list of treatments in the experiment

setTreatments

public void setTreatments(java.util.List<Treatment> treatments)
Sets the list of treatments contained in the experiment.

Parameters:
treatments - the list of treatments to set