|
Watchmaker Framework API (Version 0.6.2) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.uncommons.watchmaker.swing.evolutionmonitor.EvolutionMonitor<T>
T - The type of the evolved entities monitored by this component.public class EvolutionMonitor<T>
The Evolution Monitor is a component that can be attached to an
EvolutionEngine to provide
real-time information (in a Swing GUI) about the current state of the
evolution.
| Constructor Summary | |
|---|---|
EvolutionMonitor()
Creates an EvolutionMonitor with a single panel that graphs the fitness scores of the population from generation to generation. |
|
EvolutionMonitor(Renderer<? super T,JComponent> renderer)
Creates an EvolutionMonitor with a second panel that displays a graphical representation of the fittest candidate in the population. |
|
| Method Summary | |
|---|---|
JComponent |
getGUIComponent()
|
void |
populationUpdate(PopulationData<? extends T> populationData)
Invoked when the state of the population has changed (typically at the end of a generation). |
void |
showInDialog(JFrame owner,
String title,
boolean modal)
Displays the evolution monitor component in a new JDialog. |
void |
showInFrame(String title,
boolean exitOnClose)
Displays the evolution monitor component in a new JFrame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EvolutionMonitor()
public EvolutionMonitor(Renderer<? super T,JComponent> renderer)
renderer - Renders a candidate solution as a JComponent.| Method Detail |
|---|
public void populationUpdate(PopulationData<? extends T> populationData)
populationUpdate in interface EvolutionObserver<T>populationData - Statistics about the state of the current generation.public JComponent getGUIComponent()
public void showInFrame(String title,
boolean exitOnClose)
JFrame. There is no
need to make sure this method is invoked from the Event Dispatch Thread, the
method itself ensures that the window is created and displayed from the EDT.
title - The title for the new frame.exitOnClose - Whether the JVM should exit when the frame is closed. Useful
if this is the only application window.
public void showInDialog(JFrame owner,
String title,
boolean modal)
JDialog. There is no
need to make sure this method is invoked from the Event Dispatch Thread, the
method itself ensures that the window is created and displayed from the EDT.
owner - The owning frame for the new dialog.title - The title for the new dialog.modal - Whether the
|
Watchmaker Framework API (Version 0.6.2) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||