org.artoflife.gp.genome.bool
Class AndGene

java.lang.Object
  |
  +--org.artoflife.gp.genome.GpTreeNode
        |
        +--org.artoflife.gp.genome.FunctionGene
              |
              +--org.artoflife.gp.genome.bool.BinaryLogicalGene
                    |
                    +--org.artoflife.gp.genome.bool.AndGene
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class AndGene
extends BinaryLogicalGene

True if boolean parameters are both true.

Author:
Steve Meyfroidt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.artoflife.gp.genome.FunctionGene
parameterGenes
 
Constructor Summary
AndGene()
           
 
Method Summary
protected  boolean evaluateFor(boolean parameter1, boolean parameter2)
          Override this to evaluate the function across the parameters passed in.
 
Methods inherited from class org.artoflife.gp.genome.bool.BinaryLogicalGene
evaluate, getParameterClasses, getReturnClass
 
Methods inherited from class org.artoflife.gp.genome.FunctionGene
clone, evaluate, getBooleanParameter, getDoubleParameter, getFloatParameter, getMutators, getParameterGene, initParameterGenes, setParameterGene, toString
 
Methods inherited from class org.artoflife.gp.genome.GpTreeNode
getParameterClass, getParametersLength, getSize, mutate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AndGene

public AndGene()
Method Detail

evaluateFor

protected boolean evaluateFor(boolean parameter1,
                              boolean parameter2)
Description copied from class: BinaryLogicalGene
Override this to evaluate the function across the parameters passed in.

Specified by:
evaluateFor in class BinaryLogicalGene
See Also:
BinaryLogicalGene.evaluateFor(boolean, boolean)

artoflife pre0.1.0-dev

Copyright © 2002 the Art Of Life team. All Rights Reserved.