public class TimeoutThread extends JmolThread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
String |
script |
private int |
status |
private Map<String,Object> |
timeouts |
private boolean |
triggered |
CHECK1, CHECK2, CHECK3, currentTime, eval, FINISH, hoverEnabled, INIT, isJS, isReset, junk, lastRepaintTime, MAIN, name, sc, sleepTime, startTime, stopped, targetTime, viewer
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
TimeoutThread(Viewer viewer,
String name,
int ms,
String script) |
Modifier and Type | Method and Description |
---|---|
static void |
clear(Map<String,Object> timeouts) |
protected void |
run1(int mode) |
private void |
set(int ms,
String script) |
static void |
setTimeout(Viewer viewer,
Map<String,Object> timeouts,
String name,
int mSec,
String script) |
static String |
showTimeout(Map<String,Object> timeouts,
String name) |
String |
toString() |
static void |
trigger(Map<String,Object> timeouts,
String name) |
checkInterrupted, interrupt, oops, reset, resumeEval, run, runSleep, setEval, setManager, setViewer, start
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, yield
public String script
private int status
private boolean triggered
private void set(int ms, String script)
protected void run1(int mode) throws InterruptedException
run1
in class JmolThread
InterruptedException
public static void setTimeout(Viewer viewer, Map<String,Object> timeouts, String name, int mSec, String script)