Watchmaker Framework for Evolutionary Computation API
(Version 0.7.1)

org.uncommons.watchmaker.swing
Class AbortControl

java.lang.Object
  extended by org.uncommons.watchmaker.swing.AbortControl
All Implemented Interfaces:
EvolutionControl

public class AbortControl
extends Object
implements EvolutionControl

A GUI control that allows the user to abort an evolutionary program.

Author:
Daniel Dyer

Constructor Summary
AbortControl()
           
 
Method Summary
 JButton getControl()
           
 TerminationCondition getTerminationCondition()
           
 void reset()
          Enables the GUI control and resets the abort condition ready for use.
 void setDescription(String description)
          Provides a textual description of the purpose of the control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbortControl

public AbortControl()
Method Detail

getControl

public JButton getControl()
Specified by:
getControl in interface EvolutionControl
Returns:
A button that, when pressed, will trigger the abort condition associated with this control.

reset

public void reset()
Enables the GUI control and resets the abort condition ready for use.

Specified by:
reset in interface EvolutionControl

getTerminationCondition

public TerminationCondition getTerminationCondition()
Returns:
A TerminationCondition that is tied to this control. It can be passed to an EvolutionEngine so that the evolution is aborted when this control is invoked.

setDescription

public final void setDescription(String description)
Provides a textual description of the purpose of the control. This may be displayed somewhere on the GUI component (typically as tooltip text).

Specified by:
setDescription in interface EvolutionControl
Parameters:
description - The description of the control.

Watchmaker Framework for Evolutionary Computation API
(Version 0.7.1)