Deme class - inherits a vector of Individual objects. More...
#include <Deme.h>
Public Member Functions | |
bool | initialize (StateP state) |
initialize deme | |
bool | replace (uint index, IndividualP newInd) |
replace ind. at index with newInd | |
void | write (XMLNode &) |
void | read (XMLNode &) |
uint & | getSize () |
get number of indiviuals (deme size) | |
Public Attributes | |
HallOfFameP | hof_ |
StatCalcP | stats_ |
Protected Attributes | |
uint | nIndividuals_ |
Deme class - inherits a vector of Individual objects.
A deme is a set of individuals that may interact (compete, mate) during an Algorithm execution. Each deme also contains a HallOfFame and a StatCalc object.
Definition at line 18 of file Deme.h.
void Deme::read | ( | XMLNode & | xDeme | ) |
Read deme from XMLNode. Population must be initialize()-d beforehand!