|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SimulationTimer
public class SimulationTimer
The SimulationTimer class encapsulates a simple integer timer. You will interact with the SimulationTimer class in two ways:
Constructor Summary | |
---|---|
SimulationTimer()
Creates a SimulationTimer with a simulation time of 0. |
Method Summary | |
---|---|
int |
getTime()
Returns the current simulation time. |
void |
tick()
Increments the simulation timer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimulationTimer()
Method Detail |
---|
public int getTime()
public void tick()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |