Rename GenerationLimit to GenerationLimitCondition. Add test for this class.
[genetic.git] / src / condition / generationLimitCondition.h
similarity index 92%
rename from src/condition/generationLimit.h
rename to src/condition/generationLimitCondition.h
index e387669b4dc2f960e7a56b8a9d0e056a89ca0ad0..ffe977f3430a494411944cbecce1e764662b1b2e 100644 (file)
@@ -14,7 +14,7 @@ namespace genetic {
      * iteration.
      */
     template < typename _Chromosome>
-    class GenerationLimit : public Condition<_Chromosome> {
+    class GenerationLimitCondition : public Condition<_Chromosome> {
     public:
     protected:
         /**
@@ -52,7 +52,7 @@ namespace genetic {
          *
          * @param limit number of generations after which algorithm should stop
          */
-        GenerationLimit(unsigned int limit)
+        GenerationLimitCondition(unsigned int limit)
             : maxNumberOfGenerations(limit) {
         }
     };