|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxmlgp.Generation
public class Generation
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.
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 |
---|
public Generation()
Method Detail |
---|
public void setAttributes(int id, java.util.List<Statistics> statistics, java.util.List<Individual> individuals)
id
- the id of the generationstatistics
- the list of statistics to setindividuals
- the list of individuals to setpublic int getId()
public void setId(int id)
id
- the id of the generation to setpublic java.util.List<Statistics> getStatistics()
public void setStatistics(java.util.List<Statistics> statistics)
statistics
- the list of statistical measures to setpublic java.util.List<Individual> getIndividuals()
public void setIndividuals(java.util.List<Individual> individuals)
individuals
- the list of individuals to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |