com.rubecula.darwin.visualization
Interface ControlAction

All Known Subinterfaces:
Interacter
All Known Implementing Classes:
Applet_PepperedMoth, EvolutionaryApplet, OptionsController_, OptionsController_PepperedMoth, VisualizingEvolutionaryApplet

public interface ControlAction

Defines two callback methods: setState (which takes one String parameter); and setProperty (which takes a String name and a value); There are two pre-defined states "stop" and "start".

Author:
Robin Hillyard

Field Summary
static java.lang.String NEXT
          Next TODO get this from Messages
static java.lang.String QUIT
           
static java.lang.String START
           
static java.lang.String STOP
           
static java.lang.String TIME_DELAY
           
 
Method Summary
 void setProperty(java.lang.String name, java.lang.Object value)
          Method to set a property with given name and value.
 void setState(java.lang.String state)
          Method to set a state.
 boolean settable(java.lang.String propertyName)
           
 

Field Detail

STOP

static final java.lang.String STOP

START

static final java.lang.String START

TIME_DELAY

static final java.lang.String TIME_DELAY

QUIT

static final java.lang.String QUIT

NEXT

static final java.lang.String NEXT
Next TODO get this from Messages

See Also:
Constant Field Values
Method Detail

setProperty

void setProperty(java.lang.String name,
                 java.lang.Object value)
                 throws VisualizationException
Method to set a property with given name and value.

Parameters:
name -
value -
Throws:
VisualizationException - XXX

setState

void setState(java.lang.String state)
              throws VisualizationException
Method to set a state.

Parameters:
state -
Throws:
VisualizationException - XXX

settable

boolean settable(java.lang.String propertyName)
Parameters:
propertyName -
Returns:
true if the property named is settable


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