Added the className method everywhere
This commit is contained in:
parent
e44cf2c446
commit
66a51c5ddb
7 changed files with 13 additions and 1 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,8 @@ public:
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual std::string className(void) const { return "eoCtrlCContinue"; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ public:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual std::string className(void) const { return "eoFitContinue"; }
|
||||||
private:
|
private:
|
||||||
FitnessType maximum;
|
FitnessType maximum;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Reference in a new issue