ECF 1.5
Public Member Functions | Public Attributes | Protected Attributes | List of all members

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

#include <Deme.h>

Inheritance diagram for Deme:

Public Member Functions

bool initialize (StateP state)
 initialize deme More...
 
bool replace (uint index, IndividualP newInd)
 replace ind. at index with newInd More...
 
void write (XMLNode &)
 
void read (XMLNode &)
 
uint & getSize ()
 get number of indiviuals (deme size) More...
 

Public Attributes

HallOfFameP hof_
 
StatCalcP stats_
 

Protected Attributes

uint nIndividuals_
 

Detailed Description

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.

Member Function Documentation

◆ getSize()

uint & Deme::getSize ( )
inline

get number of indiviuals (deme size)

Definition at line 30 of file Deme.h.

◆ initialize()

bool Deme::initialize ( StateP  state)

initialize deme

Definition at line 5 of file Deme.cpp.

◆ read()

void Deme::read ( XMLNode &  xDeme)

Read deme from XMLNode. Population must be initialize()-d beforehand!

Definition at line 54 of file Deme.cpp.

◆ replace()

bool Deme::replace ( uint  index,
IndividualP  newInd 
)

replace ind. at index with newInd

Definition at line 23 of file Deme.cpp.

◆ write()

void Deme::write ( XMLNode &  xDeme)

Definition at line 31 of file Deme.cpp.

Member Data Documentation

◆ hof_

HallOfFameP Deme::hof_

Definition at line 21 of file Deme.h.

◆ nIndividuals_

uint Deme::nIndividuals_
protected

Definition at line 34 of file Deme.h.

◆ stats_

StatCalcP Deme::stats_

Definition at line 22 of file Deme.h.


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