StopCriterionMaxIteration.h

Go to the documentation of this file.
00001 
00006 #ifndef GENETIK_STOPCRITERIONMAXITERATION
00007 #define GENETIK_STOPCRITERIONMAXITERATION
00008 
00009 #include "StopCriterion.h"
00010 
00011 namespace genetiK{
00012 
00017 class StopCriterionMaxIteration : public StopCriterion
00018 {
00019         private:
00020                 unsigned int maxIteration;
00021                 unsigned int iteration;
00022         
00023         public:
00027                 StopCriterionMaxIteration(unsigned int maxIteration) : 
00028                         maxIteration(maxIteration),
00029                         iteration(0){}
00030         
00033                 ~StopCriterionMaxIteration( );
00034 
00038                 virtual bool                                                    reached(){ return iteration++ >= maxIteration; }
00039 };
00040 }
00041 
00042 #endif

Generated on Thu Feb 23 12:20:45 2006 for GenetiK by  doxygen 1.4.6