|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.tankbattles.simulation.ThreadController
public class ThreadController
Controls the threads of the simulators. The jME SimplePhysicsGame creates one main thread for the update and render. This is comonly known as the OpenGL thread. This class takes care of the other threads in the simulation, one for the mission goals evaluator and one for each tank. Tank threads are taken care of to avoid system overload.
Method Summary | |
---|---|
void |
addTankController(Tank tank,
java.lang.Object lock)
Creates a Thread and AbstractTankController object for the tank. |
static ThreadController |
getInstance()
The singleton instance accessor method. |
void |
startMissionSimulator(AbstractMissionSimulator missionSimulator)
For creating and starting the mission simulator. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ThreadController getInstance()
public void addTankController(Tank tank, java.lang.Object lock)
tank
- configuration object.lock
- for thread synchronizing.public void startMissionSimulator(AbstractMissionSimulator missionSimulator)
missionSimulator
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |