KickJava   Java API By Example, From Geeks To Geeks.

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


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 org.jgap.*;
13 import org.jgap.gp.impl.*;
14
15 /**
16  * Abstract base class for GP-commands related to mathematical calculation.
17  *
18  * @author Klaus Meffert
19  * @since 3.0
20  */

21 public abstract class MathCommand
22     extends CommandGene {
23   /** String containing the CVS revision. Read out via reflection!*/
24   private static final String JavaDoc CVS_REVISION = "$Revision: 1.9 $";
25
26   public MathCommand(final GPConfiguration a_conf, int a_arity,
27                      Class JavaDoc a_returnType)
28       throws InvalidConfigurationException {
29     this(a_conf, a_arity, a_returnType, 0, null);
30   }
31
32   /**
33    * Allows specifying a sub return type and sub child types.
34    *
35    * @param a_conf GPConfiguration
36    * @param a_arity int
37    * @param a_returnType Class
38    * @param a_subReturnType int
39    * @param a_subChildTypes int[]
40    * @throws InvalidConfigurationException
41    *
42    * @author Klaus Meffert
43    * @since 3.2
44    */

45   public MathCommand(final GPConfiguration a_conf, int a_arity,
46                      Class JavaDoc a_returnType, int a_subReturnType,
47                      int[] a_subChildTypes)
48       throws InvalidConfigurationException {
49     super(a_conf, a_arity, a_returnType, a_subReturnType, a_subChildTypes);
50   }
51
52   /**
53    * Allows specifying a sub return type and a single sub child type.
54    *
55    * @param a_conf GPConfiguration
56    * @param a_arity int
57    * @param a_returnType Class
58    * @param a_subReturnType int
59    * @param a_subChildType int
60    * @throws InvalidConfigurationException
61    *
62    * @author Klaus Meffert
63    * @since 3.2
64    */

65   public MathCommand(final GPConfiguration a_conf, int a_arity,
66                      Class JavaDoc a_returnType, int a_subReturnType,
67                      int a_subChildType)
68       throws InvalidConfigurationException {
69     super(a_conf, a_arity, a_returnType, a_subReturnType, a_subChildType);
70   }
71 }
72
Popular Tags