org.simbrain.gauge.graphics
Class GaugeThread
java.lang.Object
java.lang.Thread
org.simbrain.gauge.graphics.GaugeThread
- All Implemented Interfaces:
- Runnable
public class GaugeThread
- extends Thread
GaugeThread updates the Gauge Panel; Used for repeatedly iterating iterative projection algorithms. Invoked
by the "play" button on the toolbar.
| Methods inherited from class java.lang.Thread |
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 |
GaugeThread
public GaugeThread(GaugePanel thePanel)
- Parameters:
thePanel - reference to the gauge panel
run
public void run()
- Runs thread.
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
isRunning
public boolean isRunning()
- Returns:
- true if the thread is running, false otherwise
setRunning
public void setRunning(boolean b)
- Parameters:
b - true to run the network thread, false to stop it
setUpdateNetwork
public void setUpdateNetwork(Runnable updateNetwork)
- Parameters:
updateNetwork - Set update network while running.
getUpdateNetwork
public Runnable getUpdateNetwork()
- Returns:
- updateNetwork.