public class SimulationThread
extends java.lang.Thread
Constructor and Description |
---|
SimulationThread(ViewerPanel viewer,
long firstStepTime) |
Modifier and Type | Method and Description |
---|---|
static void |
debugToSystemOut(boolean debug)
Permits switching the debug output of the viewer's time steps to system out.
|
boolean |
isWorking()
Animation is working when simulation time is running and has no pause
|
void |
run() |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public SimulationThread(ViewerPanel viewer, long firstStepTime)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public boolean isWorking()
public static void debugToSystemOut(boolean debug)
debug
- Switch output on (true
) or off (false
, default)