|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.util.timer.TimerTaskImpl
planet.test.timer.SimulationTimerTest.TestTimerTask
public class SimulationTimerTest.TestTimerTask
Simple TimerTask that only prints the actual step and its name for each invocation of run() method.
Constructor Summary | |
---|---|
SimulationTimerTest.TestTimerTask(java.lang.String name,
boolean periodic)
Sets the name of this TimerTask. |
Method Summary | |
---|---|
void |
run()
Prints the actual step and the name of this task. |
java.lang.String |
toString()
Shows the name of the TimerTask. |
Methods inherited from class planet.util.timer.TimerTaskImpl |
---|
cancel, isFinished |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimulationTimerTest.TestTimerTask(java.lang.String name, boolean periodic)
name
- New name of this TimerTaskperiodic
- true if this TimerTask is periodicMethod Detail |
---|
public void run()
run
in interface TimerTask
run
in class TimerTaskImpl
TimerTask.run()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |