KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgap > distr > grid > DefaultEvolveStrategy


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 org.jgap.distr.grid;
11
12 import org.jgap.*;
13 import org.jgap.util.*;
14
15 /**
16  * Default and simple implementation of IWorkerEvolveStrategy.
17  *
18  * @author Klaus Meffert
19  * @since 3.2
20  */

21 public class DefaultEvolveStrategy
22     implements IWorkerEvolveStrategy, ICloneable {
23   /** String containing the CVS revision. Read out via reflection!*/
24   private final static String JavaDoc CVS_REVISION = "$Revision: 1.5 $";
25
26   public void evolve(Genotype a_genotype) {
27     a_genotype.evolve();
28   }
29
30   /**
31    * @return deep clone of this instance
32    *
33    * @author Klaus Meffert
34    * @since 3.2
35    */

36   public Object JavaDoc clone() {
37     return new DefaultEvolveStrategy();
38   }
39 }
40
Popular Tags