org.artoflife.gp.genome
Class CopyJumpDownMutator

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

public class CopyJumpDownMutator
extends java.lang.Object
implements GpMutator

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

Author:
Steve Meyfroidt

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

Constructor Detail

CopyJumpDownMutator

public CopyJumpDownMutator()
Method Detail

mutate

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

Specified by:
mutate in interface GpMutator
Parameters:
gene - non-null gene to try 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.