Public Member Functions | Protected Attributes

MyAlg Class Reference

Inheritance diagram for MyAlg:
Algorithm

List of all members.

Public Member Functions

void registerParameters (StateP state)
 Register algorithm's parameters (if any).
bool initialize (StateP state)
 Initialize the algorithm, read parameters from the system, do a sanity check.
bool advanceGeneration (StateP state, DemeP deme)
 Perform a single generation on a single deme.

Protected Attributes

SelFitnessProportionalOpP selFitOp_
SelRandomOpP selRandomOp_
SelBestOpP selBestOp_
SelWorstOpP selWorstOp_
bool replaceWorst_

Detailed Description

Definition at line 14 of file main.cpp.


Member Function Documentation

bool MyAlg::advanceGeneration ( StateP  ,
DemeP   
) [inline, virtual]

Perform a single generation on a single deme.

Must be implemented by a specific algorithm class

Implements Algorithm.

Definition at line 102 of file main.cpp.

bool MyAlg::initialize ( StateP   )  [inline, virtual]

Initialize the algorithm, read parameters from the system, do a sanity check.

Called by the system before the algorithm starts (Algorithm::advanceGeneration)

Reimplemented from Algorithm.

Definition at line 50 of file main.cpp.

void MyAlg::registerParameters ( StateP   )  [inline, virtual]

Register algorithm's parameters (if any).

Called by the system before algorithm initialization (Algorithm::initialize)

Reimplemented from Algorithm.

Definition at line 41 of file main.cpp.


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