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
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). |
$1_SECOND
static final int $1_SECOND
- 1000
- See Also:
- Constant Field Values
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.