gpsys
Class GeneFunctionFull

java.lang.Object
  |
  +--gpsys.Gene
        |
        +--gpsys.GeneFunction
              |
              +--gpsys.GeneFunctionFull

public class GeneFunctionFull
extends GeneFunction
implements java.lang.Cloneable

A GeneFunctionFull is a GeneFunction tree created using the Full method. In the Full method, the tree is full depth along any path from the root to a leaf.

Version:
$Revision: 1.1 $, $Date: 2000/07/05 16:21:25 $
Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Serialized Form

Fields inherited from class gpsys.GeneFunction
arguments
 
Fields inherited from class gpsys.Gene
p
 
Constructor Summary
GeneFunctionFull(int maxDepth, Type type, GPParameters gpParameters, int adfIndex)
          Create a Gene tree using the Full method.
 
Methods inherited from class gpsys.GeneFunction
complexity, deepClone, depth, evaluateBoolean, evaluateByte, evaluateChar, evaluateDouble, evaluateFloat, evaluateInt, evaluateLong, evaluateObject, evaluateShort, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

GeneFunctionFull

public GeneFunctionFull(int maxDepth,
                        Type type,
                        GPParameters gpParameters,
                        int adfIndex)
                 throws TypeException
Create a Gene tree using the Full method. The Full method tries to create trees of the maximum specified depth along any branch.
Parameters:
maxDepth - the maximum depth of the Gene tree to be generated.
type - the required return type of top node in the tree.
gpParameters - the GP parameters for this run.
adfIndex - the index of the ChromosomeParameters to used.
Throws:
TypeException - If a Function or Terminal of a required type could not be found.