|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.gui.Viewer.SimThread
public class Viewer.SimThread
The simulation thread that holds the simulation process.
| Constructor Summary | |
|---|---|
Viewer.SimThread(boolean isTurboMode,
long timeDelay)
Create a simulation thread. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Viewer.SimThread(boolean isTurboMode,
long timeDelay)
isTurboMode - Whether the turbo mode is ontimeDelay - The time delay| Method Detail |
|---|
public 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()
public void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||