org.artoflife.gp.genome.bool
Class UnaryLogicalGene
java.lang.Object
  |
  +--org.artoflife.gp.genome.GpTreeNode
        |
        +--org.artoflife.gp.genome.FunctionGene
              |
              +--org.artoflife.gp.genome.bool.UnaryLogicalGene
- All Implemented Interfaces: 
- java.lang.Cloneable, java.io.Serializable
- Direct Known Subclasses: 
- NotGene
- public abstract class UnaryLogicalGene- extends FunctionGene
Abstract base class for unary logical operators
 like NotGene that take a boolean
 parameter and return a boolean. (This is 
 unnecessary since only NotGene subclass, 
 but consistent with other function class hierarchies).
- Author:
- Steve Meyfroidt
- See Also:
- Serialized Form
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
UnaryLogicalGene
public UnaryLogicalGene()
getParameterClasses
protected java.util.List getParameterClasses()
- 
- Specified by:
- getParameterClassesin 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:
- getReturnClassin class- GpTreeNode
 
- 
- Returns:
- the class this gene returns on evaluation
- See Also:
- GpTreeNode.getReturnClass()
 
evaluate
public java.lang.Object evaluate(Phenotype phenotype,
                                 java.util.List parameters)
- 
- Specified by:
- evaluatein class- FunctionGene
 
- 
- See Also:
- FunctionGene.evaluate(org.artoflife.gp.Phenotype, java.util.List)
 
evaluateFor
protected abstract boolean evaluateFor(boolean parameter)
- Evaluate the function for the passed parameter.
 
- 
 
Copyright © 2002 the Art Of Life team. All Rights Reserved.