org.lucci.madhoc.gui
Class SimulationRuntime

java.lang.Object
  extended by org.lucci.madhoc.gui.SimulationRuntime
All Implemented Interfaces:
java.lang.Runnable

public class SimulationRuntime
extends java.lang.Object
implements java.lang.Runnable

Author:
luc.hogie

Field Summary
static int STATE_COMPLETED
           
static int STATE_RUNNING
           
static int STATE_SLEEPING
           
 
Constructor Summary
SimulationRuntime(MadhocSimulation s)
           
 
Method Summary
 void addSimulationRuntimeListener(SimulationRuntimeListener l)
           
 int getNumberOfStepsToExecute()
           
 MadhocSimulation getSimulation()
           
 int getState()
           
 void run()
           
 void setNumberOfStepToExecute(int i)
           
 void setRequiredState(int requiredState)
           
 void setScreenshotableFrame(org.lucci.gui.ScreenshotableJFrame frame)
           
 void start()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_SLEEPING

public static final int STATE_SLEEPING
See Also:
Constant Field Values

STATE_RUNNING

public static final int STATE_RUNNING
See Also:
Constant Field Values

STATE_COMPLETED

public static final int STATE_COMPLETED
See Also:
Constant Field Values
Constructor Detail

SimulationRuntime

public SimulationRuntime(MadhocSimulation s)
Method Detail

start

public void start()

getState

public int getState()

setRequiredState

public void setRequiredState(int requiredState)

run

public void run()
Specified by:
run in interface java.lang.Runnable

getNumberOfStepsToExecute

public int getNumberOfStepsToExecute()

setNumberOfStepToExecute

public void setNumberOfStepToExecute(int i)

addSimulationRuntimeListener

public void addSimulationRuntimeListener(SimulationRuntimeListener l)

getSimulation

public MadhocSimulation getSimulation()
Returns:
Returns the simulation.

setScreenshotableFrame

public void setScreenshotableFrame(org.lucci.gui.ScreenshotableJFrame frame)
Parameters:
frame -