xmlgp
Class Statistics

java.lang.Object
  extended by xmlgp.Statistics

public class Statistics
extends java.lang.Object

This class is the data holder for statistics of Project, Experiment, Treatment, Trial, Generation, Individual and Representation.
It has setters and getters to all the attributes of Statistics.

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

Author:
dharani

Constructor Summary
Statistics()
           
 
Method Summary
 java.lang.String getName()
          Returns the name of the statistics.
 java.lang.String getValue()
          Returns the value of the statistics.
 void setAttributes(java.lang.String name, java.lang.String value)
          Sets all the attributes of this class.
 void setName(java.lang.String name)
          Sets the name of the statistics.
 void setValue(java.lang.String value)
          Sets the value of the statistics.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statistics

public Statistics()
Method Detail

setAttributes

public void setAttributes(java.lang.String name,
                          java.lang.String value)
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:
name - the name of the measure
value - the value of the measure to set

getName

public java.lang.String getName()
Returns the name of the statistics.

Returns:
the name of the measure

setName

public void setName(java.lang.String name)
Sets the name of the statistics.

Parameters:
name - the name of the measure to set

getValue

public java.lang.String getValue()
Returns the value of the statistics.

Returns:
the value of the measure

setValue

public void setValue(java.lang.String value)
Sets the value of the statistics.

Parameters:
value - the value of the measure to set