xmlgp
Class Generation

java.lang.Object
  extended by xmlgp.Generation

public class Generation
extends java.lang.Object

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

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

Author:
dharani

Constructor Summary
Generation()
           
 
Method Summary
 int getId()
          Returns the id of the generation.
 java.util.List<Individual> getIndividuals()
          Returns the list of individuals of the generation.
 java.util.List<Statistics> getStatistics()
          Returns the list of statistical measures of the generation.
 void setAttributes(int id, java.util.List<Statistics> statistics, java.util.List<Individual> individuals)
          Sets all the attributes of this class.
 void setId(int id)
          Sets the id of the generation.
 void setIndividuals(java.util.List<Individual> individuals)
          Sets the list of individuals of the generation.
 void setStatistics(java.util.List<Statistics> statistics)
          Sets the list of statistical measures of the generation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generation

public Generation()
Method Detail

setAttributes

public void setAttributes(int id,
                          java.util.List<Statistics> statistics,
                          java.util.List<Individual> individuals)
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 generation
statistics - the list of statistics to set
individuals - the list of individuals to set

getId

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

Returns:
the id of the generation

setId

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

Parameters:
id - the id of the generation to set

getStatistics

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

Returns:
the list of statistical measures of the generation

setStatistics

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

Parameters:
statistics - the list of statistical measures to set

getIndividuals

public java.util.List<Individual> getIndividuals()
Returns the list of individuals of the generation.

Returns:
the list of individuals of the generation.

setIndividuals

public void setIndividuals(java.util.List<Individual> individuals)
Sets the list of individuals of the generation.

Parameters:
individuals - the list of individuals to set