org.simbrain.world.odorworld
Class ScriptThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.simbrain.world.odorworld.ScriptThread
All Implemented Interfaces:
Runnable

public class ScriptThread
extends Thread

ScriptThread "runs" the network. It is controlled by the play and stop buttons in the network panel.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ScriptThread(OdorWorld wld, String[][] vals, DialogScript dialog)
          Script thread.
 
Method Summary
 boolean isRunning()
           
 void run()
           
 void setRunning(boolean b)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptThread

public ScriptThread(OdorWorld wld,
                    String[][] vals,
                    DialogScript dialog)
Script thread.

Parameters:
wld - World
vals - Values
dialog - Dialog
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Thread.run

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