![]() |
ECF 1.7
|
Abstract operator class. More...
#include <Operator.h>
Public Member Functions | |
| virtual bool | operate (StateP)=0 |
| perform the designated operation | |
| virtual bool | initialize (StateP) |
| Perform initialization. Called before Operator::operate. By default, if the return value is false, the operator will not be used! | |
| virtual void | registerParameters (StateP) |
| Register parameters with the Registry. Called before Operator::initialize. | |
| virtual void | write (XMLNode &) |
| Write operator state to XMLNode or the Registry. Called after Operator::initialize. | |
| virtual void | read (XMLNode &) |
| Read operator state from XMLNode or the Registry. Called after Operator::initialize. | |
Abstract operator class.
Encapsulates calls to parameter registration, initialization and operation.
Definition at line 10 of file Operator.h.
|
inlinevirtual |
Definition at line 44 of file Operator.h.
|
inlinevirtual |
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, TermMaxEvalOp, TermMaxGenOp, TermMaxTimeOp, and TermStagnationOp.
Definition at line 20 of file Operator.h.
|
pure virtual |
perform the designated operation
Implemented in HallOfFame, Migration, StatCalc, TermFitnessValOp, TermMaxEvalOp, TermMaxGenOp, TermMaxTimeOp, and TermStagnationOp.
|
inlinevirtual |
Read operator state from XMLNode or the Registry. Called after Operator::initialize.
Reimplemented in HallOfFame.
Definition at line 41 of file Operator.h.
|
inlinevirtual |
Register parameters with the Registry. Called before Operator::initialize.
Reimplemented in Migration, StatCalc, TermFitnessValOp, TermMaxEvalOp, TermMaxGenOp, TermMaxTimeOp, and TermStagnationOp.
Definition at line 27 of file Operator.h.
|
inlinevirtual |
Write operator state to XMLNode or the Registry. Called after Operator::initialize.
Reimplemented in HallOfFame.
Definition at line 34 of file Operator.h.