|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbarsuift.simLife.time.UniverseTimeController
public class UniverseTimeController
Controller for time control on the universe.
| Constructor Summary | |
|---|---|
UniverseTimeController(Universe universe)
|
|
| Method Summary | |
|---|---|
int |
getSpeed()
|
TimeCounter |
getTimeCounter()
|
boolean |
isRunning()
|
void |
oneStep()
Execute one step of the controller. |
void |
pause()
Pause the controller. |
void |
setSpeed(int speed)
|
void |
start()
Start the controller. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UniverseTimeController(Universe universe)
| Method Detail |
|---|
public void setSpeed(int speed)
public int getSpeed()
public void start()
throws java.lang.IllegalStateException
A TimeMessenger instance is scheduled to be run every seconds.
java.lang.IllegalStateException - if the controller is already runningpublic void oneStep()
A TimeMessenger instance is run once.
java.lang.IllegalStateException - if the controller is already runningpublic void pause()
The running process is asked to stop, once it has completed its current execution.
java.lang.IllegalStateException - if the controller is not runningpublic boolean isRunning()
public TimeCounter getTimeCounter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||