|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.evolve.impl.EvolutionaryAlgorithmImpl<I>
I - individual typepublic final class EvolutionaryAlgorithmImpl<I>
Implementation of an evolutionary algorithm function.
| Constructor Summary | |
|---|---|
EvolutionaryAlgorithmImpl()
Create a new evolutionary algorithm function implementation. |
|
| Method Summary | |
|---|---|
void |
addEvolutionaryAlgorithmListener(EvolutionaryAlgorithmListener<I> l)
Add the specified evolutionary algorithm listener. |
Collection<I> |
evolve(Collection<I> individuals,
ExitStrategy<I> exitStrategy,
Recombination<I> recombination,
Mutation<I> mutation,
Fitness<I> fitness,
Selection<I> selection)
Evolve the specified population of individuals, using all of the specified exit strategy, recombination, mutation, fitness, and selection functions. |
int |
getEvolutionaryAlgorithmListenerCount()
Return the number of evolutionary algorithm listeners registered to this evolutionary algorithm. |
EvolutionaryAlgorithmListener<I>[] |
getEvolutionaryAlgorithmListeners()
Return an array of evolutionary algorithm listeners registered to this evolutionary algorithm. |
void |
removeEvolutionaryAlgorithmListener(EvolutionaryAlgorithmListener<I> l)
Remove the specified evolutionary algorithm listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EvolutionaryAlgorithmImpl()
| Method Detail |
|---|
public Collection<I> evolve(Collection<I> individuals,
ExitStrategy<I> exitStrategy,
Recombination<I> recombination,
Mutation<I> mutation,
Fitness<I> fitness,
Selection<I> selection)
evolve in interface EvolutionaryAlgorithm<I>individuals - population of individuals, must not be null and must contain
at least one individualexitStrategy - exit strategy function, must not be nullrecombination - recombination function, must not be nullmutation - mutation function, must not be nullfitness - fitness function, must not be nullselection - selection function, must not be null
public void addEvolutionaryAlgorithmListener(EvolutionaryAlgorithmListener<I> l)
addEvolutionaryAlgorithmListener in interface EvolutionaryAlgorithm<I>l - evolutionary algorithm listener to addpublic void removeEvolutionaryAlgorithmListener(EvolutionaryAlgorithmListener<I> l)
removeEvolutionaryAlgorithmListener in interface EvolutionaryAlgorithm<I>l - evolutionary algorithm listener to removepublic int getEvolutionaryAlgorithmListenerCount()
getEvolutionaryAlgorithmListenerCount in interface EvolutionaryAlgorithm<I>public EvolutionaryAlgorithmListener<I>[] getEvolutionaryAlgorithmListeners()
getEvolutionaryAlgorithmListeners in interface EvolutionaryAlgorithm<I>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||