xmlgp
Class Individual

java.lang.Object
  extended by xmlgp.Individual

public class Individual
extends java.lang.Object

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

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

Author:
dharani

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

Constructor Detail

Individual

public Individual()
Method Detail

setAttributes

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

getId

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

Returns:
the id of the individual

setId

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

Parameters:
id - the id of the individual to set

getStatistics

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

Returns:
the list of statistical measures of the individual.

setStatistics

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

Parameters:
statistics - the list of statistical measures to set

getRepresentations

public java.util.List<Representation> getRepresentations()
Returns the list of representations of the individual.

Returns:
the list of representations of the individual

setRepresentations

public void setRepresentations(java.util.List<Representation> representations)
Sets the list of representations of this individual.

Parameters:
representations - the list of representations to set