artoflife pre0.1.0-dev

org.artoflife.gp.genome
Class JumpDownMutator

java.lang.Object
  |
  +--org.artoflife.gp.genome.JumpDownMutator
All Implemented Interfaces:
GpMutator

public class JumpDownMutator
extends java.lang.Object
implements GpMutator

Mutates a gene by making one of its parameters the parameter to a new random gene. May not mutate if it couldn't match types.

Author:
Steve Meyfroidt

Constructor Summary
JumpDownMutator()
           
 
Method Summary
 void mutate(java.lang.String geneSelectionId, GpTreeNode gene)
          Replace a parameter of this function with a new gene using the original parameter as a parameter of the new function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JumpDownMutator

public JumpDownMutator()
Method Detail

mutate

public void mutate(java.lang.String geneSelectionId,
                   GpTreeNode gene)
Replace a parameter of this function with a new gene using the original parameter as a parameter of the new function.

Specified by:
mutate in interface GpMutator
Parameters:
gene - the non-null gene to mutate
geneSelectionId - ID of allowed genes that can be created for this mutation

artoflife pre0.1.0-dev

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