org.dishevelled.evolve.recombine
Class AsexualRecombination<I>

java.lang.Object
  extended by org.dishevelled.evolve.recombine.AsexualRecombination<I>
Type Parameters:
I - individual type
All Implemented Interfaces:
Recombination<I>

public abstract class AsexualRecombination<I>
extends Object
implements Recombination<I>

Abstract asexual recombination function implementation. Subclasses need only to implement the abstract individual-wise method I recombine(I).

Version:
$Revision: 1059 $ $Date: 2012-01-03 14:03:02 -0600 (Tue, 03 Jan 2012) $
Author:
Michael Heuer

Constructor Summary
AsexualRecombination()
           
 
Method Summary
 Collection<I> recombine(Collection<I> population)
          Recombine the individuals in the specified population of individuals.
protected abstract  I recombine(I individual)
          Recombine the specified individual asexually, returning a new individual.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsexualRecombination

public AsexualRecombination()
Method Detail

recombine

public final Collection<I> recombine(Collection<I> population)
Recombine the individuals in the specified population of individuals.

Specified by:
recombine in interface Recombination<I>
Parameters:
population - population of individuals
Returns:
a collection of recombined individuals

recombine

protected abstract I recombine(I individual)
Recombine the specified individual asexually, returning a new individual.

Parameters:
individual - individual to recombine asexually
Returns:
a new individual recombined from the specified individual


Copyright (c) 2005-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).