public class TimeModelContinuousExecutionElements.TimeSettingThread
extends java.lang.Thread
Constructor and Description |
---|
TimeSettingThread()
Instantiates a new time setting thread.
|
TimeSettingThread(long sleepTime)
Instantiates a new time setting thread.
|
Modifier and Type | Method and Description |
---|---|
long |
getSleepTime()
Gets the sleep time.
|
boolean |
isClockRunning()
Checks if is clock running.
|
void |
run() |
void |
setClockRunning(boolean isClockRunning)
Sets the clock running.
|
void |
setSleepTime(long sleepTime)
Sets the sleep time.
|
activeCount, checkAccess, clone, 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 TimeSettingThread()
public TimeSettingThread(long sleepTime)
sleepTime
- the sleep timepublic void setClockRunning(boolean isClockRunning)
isClockRunning
- the new clock runningpublic boolean isClockRunning()
public long getSleepTime()
public void setSleepTime(long sleepTime)
sleepTime
- the sleepTime to setpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread