241 lines
24 KiB
HTML
241 lines
24 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-PEO: peoParaPopEval.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.4.7 -->
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="main.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</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> <u>S</u>earch for </label></td>
|
|
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</li>
|
|
</ul></div>
|
|
<h1>peoParaPopEval.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">// "peoParaPopEval.h"</span>
|
|
<a name="l00004"></a>00004
|
|
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, August 2005</span>
|
|
<a name="l00006"></a>00006
|
|
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
|
|
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
|
|
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
|
|
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
|
|
<a name="l00011"></a>00011 <span class="comment"> </span>
|
|
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
|
|
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
|
|
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
|
|
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
|
|
<a name="l00016"></a>00016 <span class="comment"> </span>
|
|
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
|
|
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
|
|
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
|
|
<a name="l00020"></a>00020 <span class="comment"> </span>
|
|
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
|
<a name="l00022"></a>00022 <span class="comment">*/</span>
|
|
<a name="l00023"></a>00023
|
|
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __peoParaPopEval_h</span>
|
|
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __peoParaPopEval_h</span>
|
|
<a name="l00026"></a>00026 <span class="preprocessor"></span>
|
|
<a name="l00027"></a>00027 <span class="preprocessor">#include <queue></span>
|
|
<a name="l00028"></a>00028 <span class="preprocessor">#include <eoEvalFunc.h></span>
|
|
<a name="l00029"></a>00029
|
|
<a name="l00030"></a>00030 <span class="preprocessor">#include "core/messaging.h"</span>
|
|
<a name="l00031"></a>00031 <span class="preprocessor">#include "core/peo_debug.h"</span>
|
|
<a name="l00032"></a>00032 <span class="preprocessor">#include "peoAggEvalFunc.h"</span>
|
|
<a name="l00033"></a>00033 <span class="preprocessor">#include "peoNoAggEvalFunc.h"</span>
|
|
<a name="l00034"></a>00034
|
|
<a name="l00035"></a>00035
|
|
<a name="l00037"></a>00037
|
|
<a name="l00041"></a><a class="code" href="classpeoParaPopEval.html">00041</a> <span class="keyword">template</span>< <span class="keyword">class</span> EOT > <span class="keyword">class </span><a class="code" href="classpeoParaPopEval.html">peoParaPopEval</a> : <span class="keyword">public</span> <a class="code" href="classpeoPopEval.html">peoPopEval</a>< EOT > {
|
|
<a name="l00042"></a>00042
|
|
<a name="l00043"></a>00043 <span class="keyword">public</span>:
|
|
<a name="l00044"></a>00044
|
|
<a name="l00045"></a>00045 <span class="keyword">using</span> <a class="code" href="classpeoPopEval.html">peoPopEval< EOT ></a><a class="code" href="classService.html#7e2ae35a9070a05dcd46488df649896d"> :: requestResourceRequest</a>;
|
|
<a name="l00046"></a>00046 <span class="keyword">using</span> <a class="code" href="classpeoPopEval.html">peoPopEval< EOT ></a><a class="code" href="classCommunicable.html#3306a9adb11a0ab5af342c0db9f7bb2a"> :: resume</a>;
|
|
<a name="l00047"></a>00047 <span class="keyword">using</span> <a class="code" href="classpeoPopEval.html">peoPopEval< EOT ></a><a class="code" href="classCommunicable.html#cb53e6534b947bc889aa181d9dbbd13b"> :: stop</a>;
|
|
<a name="l00048"></a>00048 <span class="keyword">using</span> <a class="code" href="classpeoPopEval.html">peoPopEval< EOT ></a><a class="code" href="classService.html#0dae00309c51a7b7069788142aed799f"> :: getOwner</a>;
|
|
<a name="l00049"></a>00049
|
|
<a name="l00054"></a>00054 <a class="code" href="classpeoParaPopEval.html#bcb540510a7038520bec41a7af332daf">peoParaPopEval</a>( eoEvalFunc< EOT >& __eval_func );
|
|
<a name="l00055"></a>00055
|
|
<a name="l00060"></a>00060 <a class="code" href="classpeoParaPopEval.html#bcb540510a7038520bec41a7af332daf">peoParaPopEval</a>( <span class="keyword">const</span> std :: vector< eoEvalFunc < EOT >* >& __funcs, <a class="code" href="classpeoAggEvalFunc.html">peoAggEvalFunc< EOT ></a>& __merge_eval );
|
|
<a name="l00061"></a>00061
|
|
<a name="l00065"></a>00065 <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#aeaa4fca4f8650e453e308838b4a2cb5">operator()</a>( eoPop< EOT >& __pop );
|
|
<a name="l00066"></a>00066
|
|
<a name="l00069"></a>00069 <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#fea632bd645ab11182782fd3c038d6d8">packData</a>();
|
|
<a name="l00070"></a>00070
|
|
<a name="l00073"></a>00073 <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#410bf4c173e2f36df82251cb16ce1b05">unpackData</a>();
|
|
<a name="l00074"></a>00074
|
|
<a name="l00076"></a>00076 <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#3af76378611eac5a36da9a0a00aeeb6c">execute</a>();
|
|
<a name="l00077"></a>00077
|
|
<a name="l00080"></a>00080 <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#24bb4ae84b0b9f64e7170e3d2b0e1223">packResult</a>();
|
|
<a name="l00081"></a>00081
|
|
<a name="l00084"></a>00084 <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#fd7f0afe9cba30be39269d16097e190e">unpackResult</a>();
|
|
<a name="l00085"></a>00085
|
|
<a name="l00088"></a>00088 <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#1f78c3cec2940af08a059cc1aa96a9c8">notifySendingData</a>();
|
|
<a name="l00089"></a>00089
|
|
<a name="l00092"></a>00092 <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#b77031fc4807921ffaf7cf6b669a7665">notifySendingAllResourceRequests</a>();
|
|
<a name="l00093"></a>00093
|
|
<a name="l00094"></a>00094 <span class="keyword">private</span>:
|
|
<a name="l00095"></a>00095
|
|
<a name="l00096"></a>00096
|
|
<a name="l00097"></a><a class="code" href="classpeoParaPopEval.html#6d69b8f73c0b5d72baf75d6e53f025b7">00097</a> <span class="keyword">const</span> std :: vector< eoEvalFunc < EOT >* >& <a class="code" href="classpeoParaPopEval.html#6d69b8f73c0b5d72baf75d6e53f025b7">funcs</a>;
|
|
<a name="l00098"></a><a class="code" href="classpeoParaPopEval.html#f0e8af3ee442d2b6baf0bd122226be3c">00098</a> std :: vector< eoEvalFunc < EOT >* > <a class="code" href="classpeoParaPopEval.html#f0e8af3ee442d2b6baf0bd122226be3c">one_func</a>;
|
|
<a name="l00099"></a>00099
|
|
<a name="l00100"></a><a class="code" href="classpeoParaPopEval.html#b48bcd4e9f92f364118304535c089456">00100</a> <a class="code" href="classpeoAggEvalFunc.html">peoAggEvalFunc< EOT ></a>& <a class="code" href="classpeoParaPopEval.html#b48bcd4e9f92f364118304535c089456">merge_eval</a>;
|
|
<a name="l00101"></a><a class="code" href="classpeoParaPopEval.html#bf255dd5861e27108c2abae7309d7690">00101</a> <a class="code" href="classpeoNoAggEvalFunc.html">peoNoAggEvalFunc< EOT ></a> <a class="code" href="classpeoParaPopEval.html#bf255dd5861e27108c2abae7309d7690">no_merge_eval</a>;
|
|
<a name="l00102"></a>00102
|
|
<a name="l00103"></a><a class="code" href="classpeoParaPopEval.html#af76cd18368a0f6185878f37f0b5f272">00103</a> std :: queue< EOT* ><a class="code" href="classpeoParaPopEval.html#af76cd18368a0f6185878f37f0b5f272">tasks</a>;
|
|
<a name="l00104"></a>00104
|
|
<a name="l00105"></a><a class="code" href="classpeoParaPopEval.html#80e7e34bb1bb2d12f1f2eed3feac6ecf">00105</a> std :: map< EOT*, std :: pair< unsigned, unsigned > > <a class="code" href="classpeoParaPopEval.html#80e7e34bb1bb2d12f1f2eed3feac6ecf">progression</a>;
|
|
<a name="l00106"></a>00106
|
|
<a name="l00107"></a><a class="code" href="classpeoParaPopEval.html#87abb090c0de39f0ccc36af1f07cca0c">00107</a> <span class="keywordtype">unsigned</span> <a class="code" href="classpeoParaPopEval.html#87abb090c0de39f0ccc36af1f07cca0c">num_func</a>;
|
|
<a name="l00108"></a>00108
|
|
<a name="l00109"></a><a class="code" href="classpeoParaPopEval.html#fb6941e0455515a908eb82342b995163">00109</a> EOT <a class="code" href="classpeoParaPopEval.html#fb6941e0455515a908eb82342b995163">sol</a>;
|
|
<a name="l00110"></a>00110
|
|
<a name="l00111"></a><a class="code" href="classpeoParaPopEval.html#60cafeab376262af675fdff43434c8d8">00111</a> EOT *<a class="code" href="classpeoParaPopEval.html#60cafeab376262af675fdff43434c8d8">ad_sol</a>;
|
|
<a name="l00112"></a>00112
|
|
<a name="l00113"></a><a class="code" href="classpeoParaPopEval.html#b528ad9dd9006c3dd57f149a3843e57d">00113</a> <span class="keywordtype">unsigned</span> <a class="code" href="classpeoParaPopEval.html#b528ad9dd9006c3dd57f149a3843e57d">total</a>;
|
|
<a name="l00114"></a>00114 };
|
|
<a name="l00115"></a>00115
|
|
<a name="l00116"></a>00116
|
|
<a name="l00117"></a><a class="code" href="classpeoParaPopEval.html#bcb540510a7038520bec41a7af332daf">00117</a> <span class="keyword">template</span>< <span class="keyword">class</span> EOT > <a class="code" href="classpeoParaPopEval.html#bcb540510a7038520bec41a7af332daf">peoParaPopEval< EOT > :: peoParaPopEval</a>( eoEvalFunc< EOT >& __eval_func ) :
|
|
<a name="l00118"></a>00118
|
|
<a name="l00119"></a>00119 funcs( one_func ), merge_eval( no_merge_eval )
|
|
<a name="l00120"></a>00120 {
|
|
<a name="l00121"></a>00121
|
|
<a name="l00122"></a>00122 <a class="code" href="classpeoParaPopEval.html#f0e8af3ee442d2b6baf0bd122226be3c">one_func</a>.push_back( &__eval_func );
|
|
<a name="l00123"></a>00123 }
|
|
<a name="l00124"></a>00124
|
|
<a name="l00125"></a>00125
|
|
<a name="l00126"></a><a class="code" href="classpeoParaPopEval.html#1cc13a1ec366f95d219d682eccb455bc">00126</a> <span class="keyword">template</span>< <span class="keyword">class</span> EOT > <a class="code" href="classpeoParaPopEval.html#bcb540510a7038520bec41a7af332daf">peoParaPopEval< EOT > :: peoParaPopEval</a>(
|
|
<a name="l00127"></a>00127
|
|
<a name="l00128"></a>00128 <span class="keyword">const</span> std :: vector< eoEvalFunc< EOT >* >& __funcs,
|
|
<a name="l00129"></a>00129 <a class="code" href="classpeoAggEvalFunc.html">peoAggEvalFunc< EOT ></a>& __merge_eval
|
|
<a name="l00130"></a>00130
|
|
<a name="l00131"></a>00131 ) : funcs( __funcs ), merge_eval( __merge_eval )
|
|
<a name="l00132"></a>00132 {
|
|
<a name="l00133"></a>00133
|
|
<a name="l00134"></a>00134 }
|
|
<a name="l00135"></a>00135
|
|
<a name="l00136"></a>00136
|
|
<a name="l00137"></a><a class="code" href="classpeoParaPopEval.html#aeaa4fca4f8650e453e308838b4a2cb5">00137</a> <span class="keyword">template</span>< <span class="keyword">class</span> EOT > <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#aeaa4fca4f8650e453e308838b4a2cb5">peoParaPopEval< EOT >::operator()</a>( eoPop< EOT >& __pop ) {
|
|
<a name="l00138"></a>00138
|
|
<a name="l00139"></a>00139 <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> i = 0; i < __pop.size(); i++ ) {
|
|
<a name="l00140"></a>00140
|
|
<a name="l00141"></a>00141 __pop[ i ].fitness( <span class="keyword">typename</span> EOT :: Fitness() );
|
|
<a name="l00142"></a>00142
|
|
<a name="l00143"></a>00143 <a class="code" href="classpeoParaPopEval.html#80e7e34bb1bb2d12f1f2eed3feac6ecf">progression</a>[ &__pop[ i ] ].first = <a class="code" href="classpeoParaPopEval.html#6d69b8f73c0b5d72baf75d6e53f025b7">funcs</a>.size() - 1;
|
|
<a name="l00144"></a>00144 <a class="code" href="classpeoParaPopEval.html#80e7e34bb1bb2d12f1f2eed3feac6ecf">progression</a>[ &__pop[ i ] ].second = <a class="code" href="classpeoParaPopEval.html#6d69b8f73c0b5d72baf75d6e53f025b7">funcs</a>.size();
|
|
<a name="l00145"></a>00145
|
|
<a name="l00146"></a>00146 <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> j = 0; j < <a class="code" href="classpeoParaPopEval.html#6d69b8f73c0b5d72baf75d6e53f025b7">funcs</a>.size(); j++ ) {
|
|
<a name="l00147"></a>00147 <span class="comment">/* Queuing the 'invalid' solution and its associated owner */</span>
|
|
<a name="l00148"></a>00148 <a class="code" href="classpeoParaPopEval.html#af76cd18368a0f6185878f37f0b5f272">tasks</a>.push( &__pop[ i ] );
|
|
<a name="l00149"></a>00149 }
|
|
<a name="l00150"></a>00150 }
|
|
<a name="l00151"></a>00151
|
|
<a name="l00152"></a>00152 <a class="code" href="classpeoParaPopEval.html#b528ad9dd9006c3dd57f149a3843e57d">total</a> = <a class="code" href="classpeoParaPopEval.html#6d69b8f73c0b5d72baf75d6e53f025b7">funcs</a>.size() * __pop.size();
|
|
<a name="l00153"></a>00153 <a class="code" href="classService.html#7e2ae35a9070a05dcd46488df649896d">requestResourceRequest</a>( <a class="code" href="classpeoParaPopEval.html#6d69b8f73c0b5d72baf75d6e53f025b7">funcs</a>.size() * __pop.size() );
|
|
<a name="l00154"></a>00154 <a class="code" href="classCommunicable.html#cb53e6534b947bc889aa181d9dbbd13b">stop</a>();
|
|
<a name="l00155"></a>00155 }
|
|
<a name="l00156"></a>00156
|
|
<a name="l00157"></a>00157
|
|
<a name="l00158"></a><a class="code" href="classpeoParaPopEval.html#fea632bd645ab11182782fd3c038d6d8">00158</a> <span class="keyword">template</span>< <span class="keyword">class</span> EOT > <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#fea632bd645ab11182782fd3c038d6d8">peoParaPopEval< EOT > :: packData</a>() {
|
|
<a name="l00159"></a>00159
|
|
<a name="l00160"></a>00160 <span class="comment">// printDebugMessage ("debut pakc data");</span>
|
|
<a name="l00161"></a>00161 pack( <a class="code" href="classpeoParaPopEval.html#80e7e34bb1bb2d12f1f2eed3feac6ecf">progression</a>[ <a class="code" href="classpeoParaPopEval.html#af76cd18368a0f6185878f37f0b5f272">tasks</a>.front() ].first-- );
|
|
<a name="l00162"></a>00162
|
|
<a name="l00163"></a>00163 <span class="comment">/* Packing the contents :-) of the solution */</span>
|
|
<a name="l00164"></a>00164 pack( *<a class="code" href="classpeoParaPopEval.html#af76cd18368a0f6185878f37f0b5f272">tasks</a>.front() );
|
|
<a name="l00165"></a>00165
|
|
<a name="l00166"></a>00166 <span class="comment">/* Packing the addresses of both the solution and the owner */</span>
|
|
<a name="l00167"></a>00167 pack( <a class="code" href="classpeoParaPopEval.html#af76cd18368a0f6185878f37f0b5f272">tasks</a>.front() );
|
|
<a name="l00168"></a>00168 <a class="code" href="classpeoParaPopEval.html#af76cd18368a0f6185878f37f0b5f272">tasks</a>.pop( );
|
|
<a name="l00169"></a>00169 }
|
|
<a name="l00170"></a>00170
|
|
<a name="l00171"></a>00171
|
|
<a name="l00172"></a><a class="code" href="classpeoParaPopEval.html#410bf4c173e2f36df82251cb16ce1b05">00172</a> <span class="keyword">template</span>< <span class="keyword">class</span> EOT > <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#410bf4c173e2f36df82251cb16ce1b05">peoParaPopEval< EOT > :: unpackData</a>() {
|
|
<a name="l00173"></a>00173
|
|
<a name="l00174"></a>00174 unpack( <a class="code" href="classpeoParaPopEval.html#87abb090c0de39f0ccc36af1f07cca0c">num_func</a> );
|
|
<a name="l00175"></a>00175 <span class="comment">/* Unpacking the solution */</span>
|
|
<a name="l00176"></a>00176 unpack( <a class="code" href="classpeoParaPopEval.html#fb6941e0455515a908eb82342b995163">sol</a> );
|
|
<a name="l00177"></a>00177 <span class="comment">/* Unpacking the @ of that one */</span>
|
|
<a name="l00178"></a>00178 unpack( <a class="code" href="classpeoParaPopEval.html#60cafeab376262af675fdff43434c8d8">ad_sol</a> );
|
|
<a name="l00179"></a>00179 }
|
|
<a name="l00180"></a>00180
|
|
<a name="l00181"></a>00181
|
|
<a name="l00182"></a><a class="code" href="classpeoParaPopEval.html#3af76378611eac5a36da9a0a00aeeb6c">00182</a> <span class="keyword">template</span>< <span class="keyword">class</span> EOT > <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#3af76378611eac5a36da9a0a00aeeb6c">peoParaPopEval< EOT > :: execute</a>() {
|
|
<a name="l00183"></a>00183
|
|
<a name="l00184"></a>00184 <span class="comment">/* Computing the fitness of the solution */</span>
|
|
<a name="l00185"></a>00185 <a class="code" href="classpeoParaPopEval.html#6d69b8f73c0b5d72baf75d6e53f025b7">funcs</a>[ <a class="code" href="classpeoParaPopEval.html#87abb090c0de39f0ccc36af1f07cca0c">num_func</a> ]->operator()( <a class="code" href="classpeoParaPopEval.html#fb6941e0455515a908eb82342b995163">sol</a> );
|
|
<a name="l00186"></a>00186 }
|
|
<a name="l00187"></a>00187
|
|
<a name="l00188"></a>00188
|
|
<a name="l00189"></a><a class="code" href="classpeoParaPopEval.html#24bb4ae84b0b9f64e7170e3d2b0e1223">00189</a> <span class="keyword">template</span>< <span class="keyword">class</span> EOT > <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#24bb4ae84b0b9f64e7170e3d2b0e1223">peoParaPopEval< EOT > :: packResult</a>() {
|
|
<a name="l00190"></a>00190
|
|
<a name="l00191"></a>00191 <span class="comment">/* Packing the fitness of the solution */</span>
|
|
<a name="l00192"></a>00192 pack( <a class="code" href="classpeoParaPopEval.html#fb6941e0455515a908eb82342b995163">sol</a>.fitness() );
|
|
<a name="l00193"></a>00193 <span class="comment">/* Packing the @ of the individual */</span>
|
|
<a name="l00194"></a>00194 pack( <a class="code" href="classpeoParaPopEval.html#60cafeab376262af675fdff43434c8d8">ad_sol</a> );
|
|
<a name="l00195"></a>00195 }
|
|
<a name="l00196"></a>00196
|
|
<a name="l00197"></a>00197
|
|
<a name="l00198"></a><a class="code" href="classpeoParaPopEval.html#fd7f0afe9cba30be39269d16097e190e">00198</a> <span class="keyword">template</span>< <span class="keyword">class</span> EOT > <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#fd7f0afe9cba30be39269d16097e190e">peoParaPopEval< EOT > :: unpackResult</a>() {
|
|
<a name="l00199"></a>00199
|
|
<a name="l00200"></a>00200 <span class="keyword">typename</span> EOT :: Fitness fit;
|
|
<a name="l00201"></a>00201
|
|
<a name="l00202"></a>00202 <span class="comment">/* Unpacking the computed fitness */</span>
|
|
<a name="l00203"></a>00203 unpack( fit );
|
|
<a name="l00204"></a>00204
|
|
<a name="l00205"></a>00205 <span class="comment">/* Unpacking the @ of the associated individual */</span>
|
|
<a name="l00206"></a>00206 unpack( <a class="code" href="classpeoParaPopEval.html#60cafeab376262af675fdff43434c8d8">ad_sol</a> );
|
|
<a name="l00207"></a>00207
|
|
<a name="l00208"></a>00208
|
|
<a name="l00209"></a>00209 <span class="comment">/* Associating the fitness the local solution */</span>
|
|
<a name="l00210"></a>00210 <a class="code" href="classpeoParaPopEval.html#b48bcd4e9f92f364118304535c089456">merge_eval</a>( *<a class="code" href="classpeoParaPopEval.html#60cafeab376262af675fdff43434c8d8">ad_sol</a>, fit );
|
|
<a name="l00211"></a>00211
|
|
<a name="l00212"></a>00212 <a class="code" href="classpeoParaPopEval.html#80e7e34bb1bb2d12f1f2eed3feac6ecf">progression</a>[ <a class="code" href="classpeoParaPopEval.html#60cafeab376262af675fdff43434c8d8">ad_sol</a> ].second--;
|
|
<a name="l00213"></a>00213
|
|
<a name="l00214"></a>00214 <span class="comment">/* Notifying the container of the termination of the evaluation */</span>
|
|
<a name="l00215"></a>00215 <span class="keywordflow">if</span> ( !<a class="code" href="classpeoParaPopEval.html#80e7e34bb1bb2d12f1f2eed3feac6ecf">progression</a>[ <a class="code" href="classpeoParaPopEval.html#60cafeab376262af675fdff43434c8d8">ad_sol</a> ].second ) {
|
|
<a name="l00216"></a>00216
|
|
<a name="l00217"></a>00217 <a class="code" href="classpeoParaPopEval.html#80e7e34bb1bb2d12f1f2eed3feac6ecf">progression</a>.erase( <a class="code" href="classpeoParaPopEval.html#60cafeab376262af675fdff43434c8d8">ad_sol</a> );
|
|
<a name="l00218"></a>00218 }
|
|
<a name="l00219"></a>00219
|
|
<a name="l00220"></a>00220 <a class="code" href="classpeoParaPopEval.html#b528ad9dd9006c3dd57f149a3843e57d">total</a>--;
|
|
<a name="l00221"></a>00221 <span class="keywordflow">if</span> ( !<a class="code" href="classpeoParaPopEval.html#b528ad9dd9006c3dd57f149a3843e57d">total</a> ) {
|
|
<a name="l00222"></a>00222
|
|
<a name="l00223"></a>00223 <a class="code" href="classService.html#0dae00309c51a7b7069788142aed799f">getOwner</a>()-><a class="code" href="classThread.html#e197c46f8f62ecce6d2a7fe95bdc5b38">setActive</a>();
|
|
<a name="l00224"></a>00224 <a class="code" href="classCommunicable.html#3306a9adb11a0ab5af342c0db9f7bb2a">resume</a>();
|
|
<a name="l00225"></a>00225 }
|
|
<a name="l00226"></a>00226 }
|
|
<a name="l00227"></a>00227
|
|
<a name="l00228"></a>00228
|
|
<a name="l00229"></a><a class="code" href="classpeoParaPopEval.html#1f78c3cec2940af08a059cc1aa96a9c8">00229</a> <span class="keyword">template</span>< <span class="keyword">class</span> EOT > <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#1f78c3cec2940af08a059cc1aa96a9c8">peoParaPopEval< EOT > :: notifySendingData</a>() {
|
|
<a name="l00230"></a>00230
|
|
<a name="l00231"></a>00231 }
|
|
<a name="l00232"></a>00232
|
|
<a name="l00233"></a>00233
|
|
<a name="l00234"></a><a class="code" href="classpeoParaPopEval.html#b77031fc4807921ffaf7cf6b669a7665">00234</a> <span class="keyword">template</span>< <span class="keyword">class</span> EOT > <span class="keywordtype">void</span> <a class="code" href="classpeoParaPopEval.html#b77031fc4807921ffaf7cf6b669a7665">peoParaPopEval< EOT > :: notifySendingAllResourceRequests</a>() {
|
|
<a name="l00235"></a>00235
|
|
<a name="l00236"></a>00236 <a class="code" href="classService.html#0dae00309c51a7b7069788142aed799f">getOwner</a>()-><a class="code" href="classThread.html#20632ffe9ddfa2a478afb0c84dc1096b">setPassive</a>();
|
|
<a name="l00237"></a>00237 }
|
|
<a name="l00238"></a>00238
|
|
<a name="l00239"></a>00239
|
|
<a name="l00240"></a>00240 <span class="preprocessor">#endif</span>
|
|
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Jan 7 18:35:23 2007 for ParadisEO-PEO by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
|
|
</body>
|
|
</html>
|