|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectplanet.util.timer.ControlTimer
This class has all its members statics to permit in a simulation envirionment controls all timers and to inform them of the actual step of simulation.
| Field Summary | |
static int |
currentStep
Actual step of simulation. |
| Constructor Summary | |
ControlTimer()
|
|
| Method Summary | |
static void |
add(SimulationTimer timer)
Adds the specified timer to current timers. |
static void |
currentStep(int step)
Iterate for all active Timers to inform the actual step. |
static void |
init()
Initialize the ControlTimer to permit adding Timers. |
static void |
setCurrentStep(int step)
Sets the current step. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int currentStep
| Constructor Detail |
public ControlTimer()
| Method Detail |
public static void init()
public static void add(SimulationTimer timer)
timer - SimulationTimer to advise each time.public static void currentStep(int step)
step - Actual simulation step.public static void setCurrentStep(int step)
step - Current step
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||