Constructor and Description |
---|
Viewer.SimThread(boolean isTurboMode,
long timeDelay)
Create a simulation thread.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isPaused()
Whether the thread is stopped.
|
boolean |
isTurboMode()
Whether the thread is in the turbo mode.
|
void |
pause()
Pause this simulation thread
|
void |
resume()
Resume this simulation thread
|
void |
run() |
void |
setSteppingMode(boolean isSteppingMode)
Set whether the stepping mode is on
|
void |
setTimeDelay(long timeDelay)
Set the time delay.
|
void |
setTurboMode(boolean isTurboMode)
Set whether the turbo mode is on
|
void |
start()
Start the simulation thread.
|
void |
terminate()
Terminate/Kill this simulation thread.
|
public Viewer.SimThread(boolean isTurboMode, long timeDelay)
isTurboMode
- Whether the turbo mode is ontimeDelay
- The time delaypublic boolean isPaused()
public boolean isTurboMode()
public void setTurboMode(boolean isTurboMode)
isTurboMode
- Whether the turbo mode is onpublic void setSteppingMode(boolean isSteppingMode)
isSteppingMode
- Whether the stepping mode is onpublic void setTimeDelay(long timeDelay)
timeDelay
- the time delay.public void start()
public void terminate()
public void pause()
public void resume()
Copyright © 2013. All rights reserved.