Public Member Functions | Public Attributes | Protected Attributes

Individual Class Reference
[Evolutionary FrameworkPopulation]

Individual class - inherits a vector of Genotype objects. More...

#include <Individual.h>

List of all members.

Public Member Functions

 Individual (StateP state)
 create AND initialize individual
bool initialize (StateP state)
 initialize individual
void write (XMLNode &)
 write individual to XML node
void read (XMLNode &)
 read individual from XML node
std::string toString ()
 output individual to string
Individualcopy ()
 create a copy of the individual
GenotypeP getGenotype (uint index=0)
 return genotype with given index
FitnessP getFitness ()
 return sptr to individual's fitness object

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_

Detailed Description

Individual class - inherits a vector of Genotype objects.

Definition at line 11 of file Individual.h.


Member Function Documentation

void Individual::read ( XMLNode &  xIndividual  ) 

read individual from XML node

Read individual from XMLNode.

Individual must be initialize()-d beforehand! If fitness object doesn't exist, one is copied from State.

Definition at line 103 of file Individual.cpp.

void Individual::write ( XMLNode &  xIndividual  ) 

write individual to XML node

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 62 of file Individual.cpp.


The documentation for this class was generated from the following files: