org.dishevelled.evolve
Interface EvolutionaryAlgorithmListener<I>

Type Parameters:
I - individual type
All Superinterfaces:
EventListener
All Known Implementing Classes:
EvolutionaryAlgorithmAdapter

public interface EvolutionaryAlgorithmListener<I>
extends EventListener

A listener that receives notification of progress in an evolutionary algorithm function.

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

Method Summary
 void exitFailed(EvolutionaryAlgorithmEvent<I> e)
          Notify this listener of an exit failed event.
 void exitSucceeded(EvolutionaryAlgorithmEvent<I> e)
          Notify this listener of an exit succeeded event.
 void fitnessCalculated(EvolutionaryAlgorithmEvent<I> e)
          Notify this listener of a fitness calculated event.
 void mutated(EvolutionaryAlgorithmEvent<I> e)
          Notify this listener of a mutated event.
 void recombined(EvolutionaryAlgorithmEvent<I> e)
          Notify this listener of a recombined event.
 void selected(EvolutionaryAlgorithmEvent<I> e)
          Notify this listener of a selected event.
 

Method Detail

exitFailed

void exitFailed(EvolutionaryAlgorithmEvent<I> e)
Notify this listener of an exit failed event. The specified event object will provide a reference to the population, fitness scores, and the time (in number of generations).

Parameters:
e - exit failed event
See Also:
EvolutionaryAlgorithmEvent.getPopulation(), EvolutionaryAlgorithmEvent.getScores(), EvolutionaryAlgorithmEvent.getTime()

exitSucceeded

void exitSucceeded(EvolutionaryAlgorithmEvent<I> e)
Notify this listener of an exit succeeded event. The specified event object will provide a reference to the population, fitness scores, and the time (in number of generations).

Parameters:
e - exit succeeded event
See Also:
EvolutionaryAlgorithmEvent.getPopulation(), EvolutionaryAlgorithmEvent.getScores(), EvolutionaryAlgorithmEvent.getTime()

recombined

void recombined(EvolutionaryAlgorithmEvent<I> e)
Notify this listener of a recombined event. The specified event object will provide a reference to the population of individuals and collection of recombined individuals.

Parameters:
e - recombined event
See Also:
EvolutionaryAlgorithmEvent.getPopulation(), EvolutionaryAlgorithmEvent.getRecombined()

mutated

void mutated(EvolutionaryAlgorithmEvent<I> e)
Notify this listener of a mutated event. The specified event object will provide a reference to the collection recombined individuals and collection of mutated individuals.

Parameters:
e - mutated event
See Also:
EvolutionaryAlgorithmEvent.getRecombined(), EvolutionaryAlgorithmEvent.getMutated()

fitnessCalculated

void fitnessCalculated(EvolutionaryAlgorithmEvent<I> e)
Notify this listener of a fitness calculated event. The specified event object will provide a reference to the individual and its fitness score.

Parameters:
e - fitness calculated event
See Also:
EvolutionaryAlgorithmEvent.getIndividual(), EvolutionaryAlgorithmEvent.getScore()

selected

void selected(EvolutionaryAlgorithmEvent<I> e)
Notify this listener of a selected event. The specified event object will provide a reference to the original population of individuals, the collection of selected individuals, and the fitness scores for the collection of selected individuals.

Parameters:
e - selected event
See Also:
EvolutionaryAlgorithmEvent.getPopulation(), EvolutionaryAlgorithmEvent.getSelected(), EvolutionaryAlgorithmEvent.getScores()


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