00001 #ifndef Context_h 00002 #define Context_h 00003 00011 class EvolutionContext 00012 { 00013 friend class State; 00014 00015 public: 00016 IndividualP evaluatedIndividual; 00017 IndividualP mutatedIndividual; 00018 IndividualP firstParent, secondParent, child; 00019 void* environment; 00020 00024 bool initialize() 00025 { 00026 bTerminate_ = false; 00027 generationNo_ = 0; 00028 return true; 00029 } 00030 00031 protected: 00032 bool bTerminate_; 00033 uint generationNo_; 00034 }; 00035 typedef boost::shared_ptr<EvolutionContext> EvolutionContextP; 00036 00037 #endif // Context_h