net.sourceforge.jabm
Interface Simulation

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
AbstractSimulation, RepeatedInteractionSimulation, SimpleSimulation

public interface Simulation
extends java.lang.Runnable

Classes implementing this interface define agent-based simulation models.

 

Method Summary
 Population getPopulation()
          Fetch the Population of agents for this simulation.
 SimulationController getSimulationController()
          Fetch the simulation controller for this simulation.
 SimulationTime getSimulationTime()
          Query the current simulation time.
 void pause()
          Pause the simulation.
 void resume()
          Resume the simulation after pausing.
 void slow(int slowSleepInterval)
          Slow down the simulation.
 void terminate()
          Terminate the simulation.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getSimulationController

SimulationController getSimulationController()
Fetch the simulation controller for this simulation.


getSimulationTime

SimulationTime getSimulationTime()
Query the current simulation time.


getPopulation

Population getPopulation()
Fetch the Population of agents for this simulation.


pause

void pause()
Pause the simulation.


resume

void resume()
Resume the simulation after pausing.


terminate

void terminate()
Terminate the simulation.


slow

void slow(int slowSleepInterval)
Slow down the simulation.

Parameters:
slowSleepInterval - The number of ms to sleep between ticks.