org.artoflife.gp.reproduction
Class CrossoverReproducer

java.lang.Object
  |
  +--org.artoflife.gp.reproduction.CrossoverReproducer
All Implemented Interfaces:
Reproducer, java.io.Serializable

public class CrossoverReproducer
extends java.lang.Object
implements Reproducer

Select two parents then allow them to crossover to produce a child, then mutate the child using a probability set in config property [this.getClass().getName()].MutationProbability.

Author:
Steve Meyfroidt
See Also:
Serialized Form

Field Summary
protected  float probability
           
 
Constructor Summary
CrossoverReproducer()
           
 
Method Summary
 Individual reproduce(Selector parentPopulation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

probability

protected float probability
Constructor Detail

CrossoverReproducer

public CrossoverReproducer()
Method Detail

reproduce

public Individual reproduce(Selector parentPopulation)
                     throws IncompatibleGenotypeException
Specified by:
reproduce in interface Reproducer
Returns:
new Individual resulting from the reproduction
Throws:
IncompatibleGenotypeException - when reproduction between Individuals with incompatible genotypes is attempted

artoflife pre0.1.0-dev

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