|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object simbad.sim.Simulator
The Simulator class. It manages the list of agents and performs the simulation steps. For each agent a simulation step is is as follow:
Constructor Summary | |
Simulator(javax.swing.JComponent applicationComponent,
World world,
EnvironmentDescription ed)
Constructs the simulator object |
Method Summary | |
void |
dispose()
Dispose all ressources. only called once. |
java.util.ArrayList |
getAgentList()
|
float |
getVirtualTimeFactor()
|
void |
initBehaviors()
initialize the behavior of all agents. |
void |
lock()
Obtain simulator critical resources. |
void |
performSimulationStep()
Perform a single step of simulation |
void |
resetSimulation()
Reset the simulation. |
void |
restartSimulation()
Simulator control. |
void |
setApplicationComponent(javax.swing.JComponent component)
|
void |
setVirtualTimeFactor(float fact)
Set the time factor. |
void |
simulateOneStep()
The main simulator method. |
void |
startBackgroundMode()
Starts special background mode |
void |
startSimulation()
Starts the simulator loop. |
void |
stopBackgroundMode()
Stops special background mode |
void |
stopSimulation()
Stop (or pause) the simulator loop. |
void |
unlock()
Release simulator critical resources. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Simulator(javax.swing.JComponent applicationComponent, World world, EnvironmentDescription ed)
applicationComponent
- - A reference to the main Application container.world
- - The 3d world object.ed
- - the Environment description.Method Detail |
public void dispose()
public void simulateOneStep()
public void initBehaviors()
public void startSimulation()
public void stopSimulation()
public void restartSimulation()
public void resetSimulation()
public void performSimulationStep()
public java.util.ArrayList getAgentList()
public void setVirtualTimeFactor(float fact)
public float getVirtualTimeFactor()
public void setApplicationComponent(javax.swing.JComponent component)
public void lock()
public void unlock()
public void startBackgroundMode()
public void stopBackgroundMode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |