paradiseo/trunk/docs/html/mo_easy_cool_sched_8h-source.html

72 lines
5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>PARADISEO-MO: moEasyCoolSched.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
<li>
<form action="search.php" method="get">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
</tr>
</table>
</form>
</li>
</ul></div>
<h1>moEasyCoolSched.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">// "moEasyCoolSched.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2003-2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* LICENCE TEXT</span>
<a name="l00008"></a>00008 <span class="comment"> </span>
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00010"></a>00010 <span class="comment">*/</span>
<a name="l00011"></a>00011
<a name="l00012"></a>00012 <span class="preprocessor">#ifndef __moEasyCoolSched_h</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define __moEasyCoolSched_h</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015 <span class="preprocessor">#include "moCoolSched.h"</span>
<a name="l00016"></a>00016
<a name="l00018"></a>00018
<a name="l00022"></a><a class="code" href="classmo_easy_cool_sched.html">00022</a> <span class="keyword">class </span><a class="code" href="classmo_easy_cool_sched.html">moEasyCoolSched</a>:<span class="keyword">public</span> <a class="code" href="classmo_cool_sched.html">moCoolSched</a>
<a name="l00023"></a>00023 {
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="keyword">public</span>:
<a name="l00027"></a>00027
<a name="l00031"></a><a class="code" href="classmo_easy_cool_sched.html#c556b41343700293bb17e3b20d81e0f2">00031</a> <a class="code" href="classmo_easy_cool_sched.html#c556b41343700293bb17e3b20d81e0f2">moEasyCoolSched</a> (<span class="keywordtype">double</span> __threshold,
<a name="l00032"></a>00032 <span class="keywordtype">double</span> __ratio):<a class="code" href="classmo_easy_cool_sched.html#3dd53700390b7bb6428db80e01626c83">threshold</a> (__threshold), <a class="code" href="classmo_easy_cool_sched.html#1f84deff87defafd927e8c323b188f38">ratio</a> (__ratio)
<a name="l00033"></a>00033 {
<a name="l00034"></a>00034
<a name="l00035"></a>00035 }
<a name="l00036"></a>00036
<a name="l00038"></a>00038
<a name="l00044"></a><a class="code" href="classmo_easy_cool_sched.html#ca08df878417ef1124e6933a9c2d7a0b">00044</a> <span class="keywordtype">bool</span> <a class="code" href="classmo_easy_cool_sched.html#ca08df878417ef1124e6933a9c2d7a0b">operator () </a>(<span class="keywordtype">double</span> &amp;__temp)
<a name="l00045"></a>00045 {
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="keywordflow">return</span> (__temp *= <a class="code" href="classmo_easy_cool_sched.html#1f84deff87defafd927e8c323b188f38">ratio</a>) &gt; <a class="code" href="classmo_easy_cool_sched.html#3dd53700390b7bb6428db80e01626c83">threshold</a>;
<a name="l00048"></a>00048 }
<a name="l00049"></a>00049
<a name="l00050"></a>00050 <span class="keyword">private</span>:
<a name="l00051"></a>00051
<a name="l00053"></a><a class="code" href="classmo_easy_cool_sched.html#3dd53700390b7bb6428db80e01626c83">00053</a> <span class="keywordtype">double</span> <a class="code" href="classmo_easy_cool_sched.html#3dd53700390b7bb6428db80e01626c83">threshold</a>;
<a name="l00054"></a>00054
<a name="l00056"></a><a class="code" href="classmo_easy_cool_sched.html#1f84deff87defafd927e8c323b188f38">00056</a> <span class="keywordtype">double</span> <a class="code" href="classmo_easy_cool_sched.html#1f84deff87defafd927e8c323b188f38">ratio</a>;
<a name="l00057"></a>00057
<a name="l00058"></a>00058 };
<a name="l00059"></a>00059
<a name="l00060"></a>00060 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 14:28:36 2006 for PARADISEO-MO by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>