- Main Page
- Classes
- Files

- Search for |

# moLinearCoolingSchedule.h

    00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
    00002
    00003 // "moLinearCoolingSchedule.h"
    00004
    00005 // (c) OPAC Team, LIFL, 2003-2007
    00006
    00007 /* LICENCE TEXT
    00008
    00009    Contact: paradiseo-help@lists.gforge.inria.fr
    00010 */
    00011
    00012 #ifndef __moLinearCoolingSchedule_h
    00013 #define __moLinearCoolingSchedule_h
    00014
    00015 #include "moCoolingSchedule.h"
    00016
    00018
    00022 class moLinearCoolingSchedule: public moCoolingSchedule
    00023 {
    00024
    00025 public:
    00027
    00031   moLinearCoolingSchedule (double __threshold, double __quantity):threshold (__threshold), quantity (__quantity)
    00032   {}
    00033
    00035
    00041   bool operator() (double &__temp)
    00042   {
    00043     return (__temp -= quantity) > threshold;
    00044   }
    00045
    00046 private:
    00047
    00049   double threshold;
    00050
    00052   double quantity;
    00053 };
    00054
    00055 #endif