KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgap > gp > CrossMethod


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.gp;
11
12 import java.io.*;
13 import org.jgap.gp.impl.*;
14
15 /**
16  * Abstract base class for GP-crossing over implementations.
17  *
18  * @author Klaus Meffert
19  * @since 3.0
20  */

21 public abstract class CrossMethod
22     implements Serializable {
23   /** String containing the CVS revision. Read out via reflection!*/
24   private final static String JavaDoc CVS_REVISION = "$Revision: 1.5 $";
25
26   private transient GPConfiguration m_configuration;
27
28   public CrossMethod(GPConfiguration a_configuration) {
29     m_configuration = a_configuration;
30   }
31
32   public GPConfiguration getConfiguration() {
33     return m_configuration;
34   }
35
36   public abstract IGPProgram[] operate(final IGPProgram i1,
37                                        final IGPProgram i2);
38 }
39
Popular Tags