All Packages Class Hierarchy This Package Previous Next Index
Interface evolution.GeneticFactory
- public interface GeneticFactory
This class provides the PoolImpl with specific genetic functionality.
-
getEvaluator()
-
-
getNumParents()
- Return the number of individuals that need to copulate
for the creation of a child.
-
getRandomGenerator()
-
-
getSortingAlgorithm()
-
-
newIndividual()
- Create a new individual.
-
offspring(Individual[], EvolutionParm)
- Produce a child from the parents' genomes.
newIndividual
public abstract Individual newIndividual() throws EvolutionException
- Create a new individual.
- Returns:
- a new (random)
Individual
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.
getEvaluator
public abstract Evaluator getEvaluator()
- Returns:
- the Evaluator object used for this evolution.
getSortingAlgorithm
public abstract SortingAlgorithm getSortingAlgorithm()
- Returns:
- the SortingAlgorithm object used for this evolution.
getRandomGenerator
public abstract RandomGenerator getRandomGenerator()
- Returns:
- the RandomGenerator object used for this evolution.
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