ECF 1.5
EvaluateOp.h
1#ifndef EvaluateOp_h
2#define EvaluateOp_h
3
4#include "Individual.h"
5
17{
18public:
22 virtual FitnessP evaluate(IndividualP) = 0;
23
27 virtual void registerParameters(StateP) {}
28
32 virtual bool initialize(StateP)
33 { return true; }
34
35 virtual ~EvaluateOp()
36 { }
37};
38typedef boost::shared_ptr<EvaluateOp> EvaluateOpP;
39
40#endif // EvaluateOp_h
41
Evaluation base class.
Definition: EvaluateOp.h:17
virtual void registerParameters(StateP)
Register evaluator parameters. Called before EvaluateOp::initialize method.
Definition: EvaluateOp.h:27
virtual bool initialize(StateP)
Initialize the evaluator. Called before first evaluation occurs.
Definition: EvaluateOp.h:32
virtual FitnessP evaluate(IndividualP)=0
Evaluate a single individual. Method must create and return a Fitness object.