ECF 1.5
Context.h
1#ifndef Context_h
2#define Context_h
3
12{
13 friend class State;
14
15public:
16 IndividualP evaluatedIndividual;
17 IndividualP mutatedIndividual;
18 IndividualP firstParent, secondParent, child;
20
25 {
26 bTerminate_ = false;
27 generationNo_ = 0;
28 return true;
29 }
30
31protected:
32 bool bTerminate_;
33 uint generationNo_;
34};
35typedef boost::shared_ptr<EvolutionContext> EvolutionContextP;
36
37#endif // Context_h
Evolutionary context class.
Definition: Context.h:12
IndividualP evaluatedIndividual
pointer to Individual being evaluated
Definition: Context.h:16
IndividualP mutatedIndividual
pointer to Individual being mutated
Definition: Context.h:17
void * environment
pointer to user defined environment
Definition: Context.h:19
IndividualP child
pointer to Individuals in current crossover
Definition: Context.h:18
bool initialize()
Definition: Context.h:24
State class - backbone of the framework.
Definition: State.h:39