xmlgp
Class Trial

java.lang.Object
  extended by xmlgp.Trial

public class Trial
extends java.lang.Object

This class is the data holder for Trial.
It has setters and getters to the members of Trial.

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

Author:
dharani

Constructor Summary
Trial()
           
 
Method Summary
 java.lang.String getAttribute()
          Returns the attribute of the trial.
 java.util.List<Generation> getGenerations()
          Returns the list of generations of the trial.
 int getId()
          Returns the id of the trial.
 java.util.List<Statistics> getStatistics()
          Returns the list of statistical measures of the trial.
 void setAttribute(java.lang.String attribute)
          Sets the attribute of the trial.
 void setAttributes(int id, java.lang.String attribute, java.util.List<Statistics> statistics, java.util.List<Generation> generations)
          Sets all the attributes of this class.
 void setGenerations(java.util.List<Generation> generations)
          Sets the list of generations of the trial..
 void setId(int id)
          Sets the id of the trial.
 void setStatistics(java.util.List<Statistics> statistics)
          Sets the list of statistical measures of the trial.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trial

public Trial()
Method Detail

setAttributes

public void setAttributes(int id,
                          java.lang.String attribute,
                          java.util.List<Statistics> statistics,
                          java.util.List<Generation> generations)
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 trial to set
attribute - the attribute to set
statistics - the list of statistics to set
generations - the list of generations to set

getId

public int getId()
Returns the id of the trial.

Returns:
the id of the trial

setId

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

Parameters:
id - the id of the trial to set

getAttribute

public java.lang.String getAttribute()
Returns the attribute of the trial.

Returns:
the attribute of the trial

setAttribute

public void setAttribute(java.lang.String attribute)
Sets the attribute of the trial.

Parameters:
attribute - the attribute to set

getStatistics

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

Returns:
the list of statistical measures of the trial.

setStatistics

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

Parameters:
statistics - the list of statistical measures to set

getGenerations

public java.util.List<Generation> getGenerations()
Returns the list of generations of the trial.

Returns:
the list of generations of the trial.

setGenerations

public void setGenerations(java.util.List<Generation> generations)
Sets the list of generations of the trial..

Parameters:
generations - the list of generations to set