Added the className method everywhere

This commit is contained in:
evomarc 2004-06-15 07:28:54 +00:00
commit 66a51c5ddb
7 changed files with 13 additions and 1 deletions

View file

@ -82,6 +82,8 @@ public:
return true; return true;
} }
virtual std::string className(void) const { return "eoCombinedContinue"; }
private: private:
std::vector<eoContinue<EOT>*> continuators; std::vector<eoContinue<EOT>*> continuators;
}; };

View file

@ -33,7 +33,11 @@
* false for termination * false for termination
*/ */
template< class EOT> template< class EOT>
class eoContinue : public eoUF<const eoPop<EOT>&, bool> {}; class eoContinue : public eoUF<const eoPop<EOT>&, bool>
{
public:
virtual std::string className(void) const { return "eoContinue"; }
};
#endif #endif

View file

@ -65,6 +65,8 @@ public:
return false; return false;
return true; return true;
} }
virtual std::string className(void) const { return "eoCtrlCContinue"; }
}; };

View file

@ -59,6 +59,7 @@ public:
return repTotalEvaluations; return repTotalEvaluations;
}; };
virtual std::string className(void) const { return "eoEvalContinue"; }
private: private:
eoEvalFuncCounter<EOT> & eval; eoEvalFuncCounter<EOT> & eval;
unsigned long repTotalEvaluations; unsigned long repTotalEvaluations;

View file

@ -57,6 +57,7 @@ public:
return true; return true;
} }
virtual std::string className(void) const { return "eoFitContinue"; }
private: private:
FitnessType maximum; FitnessType maximum;
}; };

View file

@ -73,6 +73,7 @@ public:
return repTotalGenerations; return repTotalGenerations;
}; };
virtual std::string className(void) const { return "eoGenContinue"; }
private: private:
unsigned long repTotalGenerations; unsigned long repTotalGenerations;
unsigned long thisGenerationPlaceHolder; unsigned long thisGenerationPlaceHolder;

View file

@ -94,6 +94,7 @@ public:
virtual unsigned long steadyGenerations( ) virtual unsigned long steadyGenerations( )
{ return repSteadyGenerations; }; { return repSteadyGenerations; };
virtual std::string className(void) const { return "eoSteadyFitContinue"; }
private: private:
unsigned long repMinGenerations; unsigned long repMinGenerations;
unsigned long repSteadyGenerations; unsigned long repSteadyGenerations;