All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface evolution.GeneticFactory

public interface GeneticFactory
This class provides the PoolImpl with specific genetic functionality.


Method Index

 o getEvaluator()
 o getNumParents()
Return the number of individuals that need to copulate for the creation of a child.
 o getRandomGenerator()
 o getSortingAlgorithm()
 o newIndividual()
Create a new individual.
 o offspring(Individual[], EvolutionParm)
Produce a child from the parents' genomes.

Methods

 o newIndividual
 public abstract Individual newIndividual() throws EvolutionException
Create a new individual.

Returns:
a new (random) Individual
 o getNumParents
 public abstract int getNumParents()
Return the number of individuals that need to copulate for the creation of a child. 1 is allowed, which amounts to a asexual evolution where the only genetic "input" is mutation.

Returns:
a natural number greater or equal to 1.
 o getEvaluator
 public abstract Evaluator getEvaluator()
Returns:
the Evaluator object used for this evolution.
 o getSortingAlgorithm
 public abstract SortingAlgorithm getSortingAlgorithm()
Returns:
the SortingAlgorithm object used for this evolution.
 o getRandomGenerator
 public abstract RandomGenerator getRandomGenerator()
Returns:
the RandomGenerator object used for this evolution.
 o offspring
 public abstract Individual offspring(Individual parents[],
                                      EvolutionParm parm) throws EvolutionException
Produce a child from the parents' genomes.

Parameters:
parents - the parent individuals
Throws: EvolutionException
if something goes wrong :-)

All Packages  Class Hierarchy  This Package  Previous  Next  Index