artoflife pre0.1.0-dev

org.artoflife.gp.genome
Class JumpUpMutator

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

public class JumpUpMutator
extends java.lang.Object
implements GpMutator

Mutates a FunctionGene by replacing one of its parameters with one of its parameter's parameters. May not mutate if it couldn't match types.

Author:
Steve Meyfroidt

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

Constructor Detail

JumpUpMutator

public JumpUpMutator()
Method Detail

mutate

public void mutate(java.lang.String geneSelectionId,
                   GpTreeNode gene)
Replace a parameter of this gene with a parameter of the parameter's gene.

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.