moEasyCoolSched.h

00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
00002 
00003 // "moEasyCoolSched.h"
00004 
00005 // (c) OPAC Team, LIFL, 2003-2006
00006 
00007 /* LICENCE TEXT
00008    
00009    Contact: paradiseo-help@lists.gforge.inria.fr
00010 */
00011 
00012 #ifndef __moEasyCoolSched_h
00013 #define __moEasyCoolSched_h
00014 
00015 #include "moCoolSched.h"
00016 
00018 
00022 class moEasyCoolSched:public moCoolSched
00023 {
00024 
00025 public:
00027 
00031   moEasyCoolSched (double __threshold,
00032                    double __ratio):threshold (__threshold), ratio (__ratio)
00033   {
00034 
00035   }
00036 
00038 
00044   bool operator   () (double &__temp)
00045   {
00046 
00047     return (__temp *= ratio) > threshold;
00048   }
00049 
00050 private:
00051 
00053   double threshold;
00054 
00056   double ratio;
00057 
00058 };
00059 
00060 #endif

Generated on Tue Dec 12 14:28:36 2006 for PARADISEO-MO by  doxygen 1.5.1