moFitSolContinue.h

00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
00002 
00003 // "moFitSolContinue.h"
00004 
00005 // (c) OPAC Team (LIFL), Dolphin project (INRIA), 2003-2007
00006 
00007 /* LICENCE TEXT
00008    
00009    Contact: paradiseo-help@lists.gforge.inria.fr
00010 */
00011 
00012 #ifndef __moFitSolContinue_h
00013 #define __moFitSolContinue_h
00014 
00015 #include "moSolContinue.h"
00016 
00018 
00021 template < class EOT > class moFitSolContinue:public moSolContinue < EOT >
00022 {
00023 
00024 public:
00025 
00027   typedef typename EOT::Fitness Fitness;
00028 
00030 
00033   moFitSolContinue (Fitness __fitness): fitness (__fitness)
00034   {}
00035 
00037 
00043   bool operator   () (const EOT & __sol)
00044   {
00045     if(__sol.invalid())
00046       {
00047         return true;
00048       }
00049 
00050     return __sol.fitness() < fitness;
00051   }
00052 
00054 
00057   void init ()
00058   {}
00059 
00060 private:
00061 
00063   Fitness fitness;
00064 };
00065 
00066 #endif

Generated on Thu Sep 20 11:30:28 2007 for ParadisEO-MOMovingObjects by  doxygen 1.5.2