KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > examples > grid > evolutionDistributed > MyEvolveStrategy


1 /*
2  * This file is part of JGAP.
3  *
4  * JGAP offers a dual license model containing the LGPL as well as the MPL.
5  *
6  * For licencing information please see the file license.txt included with JGAP
7  * or have a look at the top of class org.jgap.Chromosome which representatively
8  * includes the JGAP license policy applicable for any file delivered with JGAP.
9  */

10 package examples.grid.evolutionDistributed;
11
12 import org.jgap.distr.grid.*;
13 import org.jgap.*;
14
15 /**
16  * Sample implementation of IWorkerEvolveStrategy.
17  *
18  * @author Klaus Meffert
19  * @since 3.2
20  */

21 public class MyEvolveStrategy implements IWorkerEvolveStrategy {
22   /** String containing the CVS revision. Read out via reflection!*/
23   private final static String JavaDoc CVS_REVISION = "$Revision: 1.1 $";
24
25   public void evolve(Genotype a_genotype) {
26     a_genotype.evolve(40);
27   }
28 }
29
Popular Tags