Public Member Functions | Protected Attributes

MyAlg Class Reference

Inheritance diagram for MyAlg:
Algorithm

List of all members.

Public Member Functions

void registerParameters (StateP state)
bool initialize (StateP state)
bool advanceGeneration (StateP state, DemeP deme)

Protected Attributes

SelFitnessProportionalOpP selFitOp_
SelRandomOpP selRandomOp_
SelBestOpP selBestOp_
SelWorstOpP selWorstOp_
bool replaceWorst_

Detailed Description

Definition at line 227 of file primjeri.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 279 of file primjeri.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 256 of file primjeri.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 249 of file primjeri.cpp.


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