org.dishevelled.evolve
Class EvolutionaryAlgorithmAdapter<I>

java.lang.Object
  extended by org.dishevelled.evolve.EvolutionaryAlgorithmAdapter<I>
Type Parameters:
I - individual type
All Implemented Interfaces:
EventListener, EvolutionaryAlgorithmListener<I>

public class EvolutionaryAlgorithmAdapter<I>
extends Object
implements EvolutionaryAlgorithmListener<I>

Adapter for the EvolutionaryAlgorithmListener interface that provides empty implementation of all required methods.

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

Constructor Summary
EvolutionaryAlgorithmAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvolutionaryAlgorithmAdapter

public EvolutionaryAlgorithmAdapter()
Method Detail

exitFailed

public 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).

Specified by:
exitFailed in interface EvolutionaryAlgorithmListener<I>
Parameters:
e - exit failed event
See Also:
EvolutionaryAlgorithmEvent.getPopulation(), EvolutionaryAlgorithmEvent.getScores(), EvolutionaryAlgorithmEvent.getTime()

exitSucceeded

public 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).

Specified by:
exitSucceeded in interface EvolutionaryAlgorithmListener<I>
Parameters:
e - exit succeeded event
See Also:
EvolutionaryAlgorithmEvent.getPopulation(), EvolutionaryAlgorithmEvent.getScores(), EvolutionaryAlgorithmEvent.getTime()

recombined

public 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.

Specified by:
recombined in interface EvolutionaryAlgorithmListener<I>
Parameters:
e - recombined event
See Also:
EvolutionaryAlgorithmEvent.getPopulation(), EvolutionaryAlgorithmEvent.getRecombined()

mutated

public 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.

Specified by:
mutated in interface EvolutionaryAlgorithmListener<I>
Parameters:
e - mutated event
See Also:
EvolutionaryAlgorithmEvent.getRecombined(), EvolutionaryAlgorithmEvent.getMutated()

fitnessCalculated

public 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.

Specified by:
fitnessCalculated in interface EvolutionaryAlgorithmListener<I>
Parameters:
e - fitness calculated event
See Also:
EvolutionaryAlgorithmEvent.getIndividual(), EvolutionaryAlgorithmEvent.getScore()

selected

public 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.

Specified by:
selected in interface EvolutionaryAlgorithmListener<I>
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).