org.artoflife.gp.genome
Class RootGene
java.lang.Object
|
+--org.artoflife.gp.genome.GpTreeNode
|
+--org.artoflife.gp.genome.FunctionGene
|
+--org.artoflife.gp.genome.RootGene
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public final class RootGene
- extends FunctionGene
Gene that GpTreeChromosome uses as its root
gene: it passes through a type. This is needed to
allow mutation and crossover of the root.
public
only to allow serialization etc.
This is not a class to be used outside this package.
- Author:
- Steve Meyfroidt
- See Also:
- Serialized Form
Constructor Summary |
RootGene(java.lang.String geneSelectionId,
java.lang.Class type)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RootGene
public RootGene(java.lang.String geneSelectionId,
java.lang.Class type)
evaluate
protected java.lang.Object evaluate(Phenotype phenotype,
java.util.List parameters)
- Specified by:
evaluate
in class FunctionGene
- See Also:
FunctionGene.evaluate(org.artoflife.gp.Phenotype, java.util.List)
getParameterClasses
protected java.util.List getParameterClasses()
- Specified by:
getParameterClasses
in class FunctionGene
- Returns:
- List of the Classes that this gene
expects to evaluate against, never null
- See Also:
GpTreeNode.getParameterClasses()
getReturnClass
public java.lang.Class getReturnClass()
- Specified by:
getReturnClass
in class GpTreeNode
- Returns:
- the class this gene returns on evaluation
- See Also:
GpTreeNode.getReturnClass()
Copyright © 2002 the Art Of Life team. All Rights Reserved.