org.artoflife.gp.genome.bool
Class NotGene

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

public class NotGene
extends UnaryLogicalGene

True if boolean value1 is false and vice versa.

Author:
Steve Meyfroidt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.artoflife.gp.genome.FunctionGene
parameterGenes
 
Constructor Summary
NotGene()
           
 
Method Summary
protected  boolean evaluateFor(boolean parameter)
          Evaluate the function for the passed parameter.
 
Methods inherited from class org.artoflife.gp.genome.bool.UnaryLogicalGene
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

NotGene

public NotGene()
Method Detail

evaluateFor

protected boolean evaluateFor(boolean parameter)
Description copied from class: UnaryLogicalGene
Evaluate the function for the passed parameter.

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

artoflife pre0.1.0-dev

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