com.rubecula.darwin.domain.helper
Interface GenerationListener

All Known Implementing Classes:
Applet_PepperedMoth, EvolutionaryApplet, GenerationListener_, GenerationListener_Standard, VisualizingEvolutionaryApplet

public interface GenerationListener

Defines a callback method for invocation whenever a Evolution runs. Note that in general, this will happen more frequently than when the population changes.

Author:
Robin Hillyard

Field Summary
static int $1_SECOND
          1000
 
Method Summary
 void onGeneration(Evolvable evolvable)
          This method is called whenever the Evolvable implementer completes a new generation or when the Evolution itself is completely exhausted (has no more evolvables to work with).
 

Field Detail

$1_SECOND

static final int $1_SECOND
1000

See Also:
Constant Field Values
Method Detail

onGeneration

void onGeneration(Evolvable evolvable)
This method is called whenever the Evolvable implementer completes a new generation or when the Evolution itself is completely exhausted (has no more evolvables to work with).

Parameters:
evolvable - the implementer of Evolvable which has completed a generation or null if the Evolution itself has completed. NOTE: implementers of this method must be prepared to accept null as the parameter.


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.