Individual class - inherits a vector of Genotypes. More...
#include <Individual.h>
Public Member Functions | |
| Individual (StateP state) | |
| create AND initialize individual | |
| bool | initialize (StateP state) |
| initialize individual | |
| void | write (XMLNode &) |
| void | read (XMLNode &) |
| Individual * | copy () |
| create a copy of the individual | |
| GenotypeP | getGenotype (uint index=0) |
| return genotype with given index | |
Public Attributes | |
| FitnessP | fitness |
| sptr to individual's fitness object | |
| unsigned int | index |
| individual's index in Deme | |
| unsigned int | cid |
| coherence index, used in asynchronous parallel algoritmhs | |
Protected Attributes | |
| StateP | state_ |
Individual class - inherits a vector of Genotypes.
Definition at line 10 of file Individual.h.
| void Individual::read | ( | XMLNode & | xIndividual | ) |
Read individual from XMLNode.
Individual must be initialize()-d beforehand! If fitness object doesn't exist, one is copied from State.
Definition at line 85 of file Individual.cpp.
| void Individual::write | ( | XMLNode & | xIndividual | ) |
Write individual to XMLNode.
Individual must be initialize()-d beforehand! If fitness object doesn't exist, an empty Fitness node is created.
Definition at line 55 of file Individual.cpp.
1.7.1