|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulation_BasicVersion.SimulationRunnable
public class SimulationRunnable
This class encapsulates a Runnable that has a basic simulation behaviour.
Constructor Summary | |
---|---|
SimulationRunnable()
Creates a runnable simulation with the default frame rate of 20 frames per second. |
|
SimulationRunnable(int frameRate)
Creates a runnable simulation with the specified frame rate. |
Method Summary | |
---|---|
void |
run()
Causes this runnable to launch. |
void |
run(int frameRate)
Causes this runnable to launch with the specified frame rate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimulationRunnable()
public SimulationRunnable(int frameRate)
frameRate
- as described aboveMethod Detail |
---|
public void run(int frameRate)
frameRate
- as described abovepublic void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |