Abstract operator class. More...
#include <Operator.h>
Public Member Functions | |
| virtual bool | operate (StateP)=0 |
| perform the designated operation | |
| virtual bool | initialize (StateP) |
| virtual void | registerParameters (StateP) |
| virtual void | write (XMLNode &) |
| virtual void | read (XMLNode &) |
Abstract operator class.
Encapsulates calls to parameter registration, initialization and operation.
Definition at line 9 of file Operator.h.
| virtual bool Operator::initialize | ( | StateP | ) | [inline, virtual] |
Perform initialization. Called before Operator::operate. By default, if the return value is false, the operator will not be used!
Reimplemented in HallOfFame, Migration, StatCalc, TermFitnessValOp, TermMaxGenOp, TermMaxTimeOp, and TermStagnationOp.
Definition at line 19 of file Operator.h.
| virtual void Operator::read | ( | XMLNode & | ) | [inline, virtual] |
Read operator state from XMLNode or the Registry. Called after Operator::initialize.
Reimplemented in HallOfFame.
Definition at line 40 of file Operator.h.
| virtual void Operator::registerParameters | ( | StateP | ) | [inline, virtual] |
Register parameters with the Registry. Called before Operator::initialize.
Reimplemented in Migration, StatCalc, TermFitnessValOp, TermMaxGenOp, TermMaxTimeOp, and TermStagnationOp.
Definition at line 26 of file Operator.h.
| virtual void Operator::write | ( | XMLNode & | ) | [inline, virtual] |
Write operator state to XMLNode or the Registry. Called after Operator::initialize.
Reimplemented in HallOfFame.
Definition at line 33 of file Operator.h.
1.7.1