ECF 1.5
|
Population class - inherits a vector of Deme objects. More...
#include <Population.h>
Public Member Functions | |
bool | initialize (StateP state) |
Initialize population (serial ECF). More... | |
void | registerParameters (StateP state) |
register population specific parameters More... | |
void | write (XMLNode &) |
Write population to XMLNode (serial ECF). More... | |
void | read (XMLNode &) |
Read population from XMLNode (serial ECF). Population must be initialize()-d beforehand! More... | |
void | updateDemeStats () |
Update, gather and write statistics of all demes; update and gather HallOfFame of all demes. More... | |
uint | getNoDemes () |
return total number of demes More... | |
uint | getLocalDemeId () |
return local deme index (local process in parallel ECF) More... | |
DemeP | getLocalDeme () |
get first deme (local deme in parallel ECF) More... | |
HallOfFameP | getHof () |
get population HallofFame More... | |
StatCalcP | getStats () |
get population stats More... | |
Protected Attributes | |
uint | nDemes_ |
total number of demes in the population More... | |
uint | myDemeIndex_ |
global index of local deme (at local process) - PECF only More... | |
uint | nIndividuals_ |
number of individuals (in each deme!) More... | |
StateP | state_ |
HallOfFameP | hof_ |
population HallOfFame More... | |
StatCalcP | stats_ |
population statistics More... | |
Population class - inherits a vector of Deme objects.
Population may consist of one or more demes. The demes evolve independently of each other.
Parallel ECF: Population object of each process contains only one Deme (called the local Deme)!
Definition at line 14 of file Population.h.
Population::Population | ( | ) |
Definition at line 5 of file Population.cpp.
|
inline |
get population HallofFame
Definition at line 37 of file Population.h.
|
inline |
get first deme (local deme in parallel ECF)
Definition at line 35 of file Population.h.
|
inline |
return local deme index (local process in parallel ECF)
Definition at line 33 of file Population.h.
|
inline |
return total number of demes
Definition at line 31 of file Population.h.
|
inline |
get population stats
Definition at line 39 of file Population.h.
bool Population::initialize | ( | StateP | state | ) |
Initialize population (serial ECF).
Initialize population (parallel ECF).
Definition at line 35 of file Population.cpp.
void Population::read | ( | XMLNode & | xPopulation | ) |
Read population from XMLNode (serial ECF). Population must be initialize()-d beforehand!
Read population from XMLNode (parallel ECF). Population must be initialize()-d beforehand!
Definition at line 65 of file Population.cpp.
void Population::registerParameters | ( | StateP | state | ) |
register population specific parameters
Definition at line 16 of file Population.cpp.
void Population::updateDemeStats | ( | ) |
Update, gather and write statistics of all demes; update and gather HallOfFame of all demes.
Update, gather and write statistics of all demes; update and gather HallOfFame of all demes. (parallel ECF)
Definition at line 100 of file Population.cpp.
void Population::write | ( | XMLNode & | xPopulation | ) |
Write population to XMLNode (serial ECF).
Write population to XMLNode (parallel ECF).
Definition at line 80 of file Population.cpp.
|
protected |
population HallOfFame
Definition at line 21 of file Population.h.
|
protected |
global index of local deme (at local process) - PECF only
Definition at line 18 of file Population.h.
|
protected |
total number of demes in the population
Definition at line 17 of file Population.h.
|
protected |
number of individuals (in each deme!)
Definition at line 19 of file Population.h.
|
protected |
Definition at line 20 of file Population.h.
|
protected |
population statistics
Definition at line 22 of file Population.h.