Package jmri.implementation
Class DefaultRoute.SetRouteThread
- java.lang.Object
-
- java.lang.Thread
-
- jmri.implementation.DefaultRoute.SetRouteThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- DefaultRoute
static class DefaultRoute.SetRouteThread extends java.lang.Thread
Class providing a thread to set route turnouts.
-
-
Constructor Summary
Constructors Constructor Description SetRouteThread(DefaultRoute aRoute)
Constructs the thread.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Runs the thread - performs operations in the order: Run script (can run in parallel) Play Sound (runs in parallel) Set Turnouts Set Sensors-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
SetRouteThread
public SetRouteThread(DefaultRoute aRoute)
Constructs the thread.- Parameters:
aRoute
- DefaultRoute to set
-
-
Method Detail
-
run
public void run()
Runs the thread - performs operations in the order:- Run script (can run in parallel)
- Play Sound (runs in parallel)
- Set Turnouts
- Set Sensors
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-