artoflife pre0.1.0-dev

org.artoflife.gp.genome.bool
Class BooleanMutator

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

public class BooleanMutator
extends java.lang.Object
implements GpMutator

Mutates a boolean value by flipping it from true to false and vice versa.

Author:
Steve Meyfroidt

Constructor Summary
BooleanMutator()
           
 
Method Summary
 void mutate(java.lang.String geneSelectionId, GpTreeNode gene)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanMutator

public BooleanMutator()
Method Detail

mutate

public void mutate(java.lang.String geneSelectionId,
                   GpTreeNode gene)
Specified by:
mutate in interface GpMutator
Parameters:
geneSelectionId - ID of allowed genes that can be created for this mutation
gene - gene to mutate
See Also:
GpMutator.mutate(java.lang.String, org.artoflife.gp.genome.GpTreeNode)

artoflife pre0.1.0-dev

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