|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jinx.action.Actor
net.jinx.action.Clock
net.jinx.action.SteppingClock
public class SteppingClock
Clock extension that is used to manually step time in the simulation.
API Stability: Alpha.
| Field Summary |
|---|
| Fields inherited from class net.jinx.action.Clock |
|---|
sync |
| Constructor Summary | |
|---|---|
SteppingClock(java.lang.String name,
float deltaTime)
Constructs a new RealTimeClock. |
|
| Method Summary | |
|---|---|
void |
start()
Sends a start event to all the sensitive actors, but only if the clock isn't in a started state. |
void |
step()
Steps the clock. |
void |
stop()
Sends a stop event to all the sensitive actors, but only if the clock is in a started state. |
| Methods inherited from class net.jinx.action.Clock |
|---|
actorAdded, actorRemoved, getDeltaTime, processEvent, sendClockEvent, sendClockStateEvent, sendIdleEvent, setDeltaTime |
| Methods inherited from class net.jinx.action.Actor |
|---|
checkAllowAdd, getName, getOwner, hashCode, ownerChanged, sendEvent, sendEvent, sendEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SteppingClock(java.lang.String name,
float deltaTime)
name - the name of the Clock.deltaTime - the change in time value for this clock.
java.lang.IllegalArgumentException - if deltaTime is less than or equal to
zero.| Method Detail |
|---|
public void start()
public void step()
public void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||