net.sourceforge.jabm
Class RepeatedInteractionSimulation
java.lang.Object
net.sourceforge.jabm.AbstractSimulation
net.sourceforge.jabm.SimpleSimulation
net.sourceforge.jabm.RepeatedInteractionSimulation
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Runnable, Simulation
public class RepeatedInteractionSimulation
- extends SimpleSimulation
- implements java.io.Serializable
A simulation in which agents repeatedly arrive at the simulation in
multiple rounds.
- See Also:
- Serialized Form
-
-
Field Summary |
protected int |
maximumRounds
The maximum number of rounds. |
protected int |
round
The current round a.k.a. |
Methods inherited from class net.sourceforge.jabm.AbstractSimulation |
addListener, fireEvent, getAgentInitialiser, getAgentMixer, getPopulation, getSimulationController, getSlowSleepInterval, initialiseAgents, invokeAgentInteractions, pause, resume, setAgentInitialiser, setAgentMixer, setPopulation, setSimulationController, setSlowSleepInterval, slow, terminate, waitIfPaused, waitIfSlowed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
round
protected int round
- The current round a.k.a. tick.
maximumRounds
protected int maximumRounds
- The maximum number of rounds.
RepeatedInteractionSimulation
public RepeatedInteractionSimulation(SimulationController simulationController)
RepeatedInteractionSimulation
public RepeatedInteractionSimulation()
getSimulationTime
public SimulationTime getSimulationTime()
- Description copied from interface:
Simulation
- Query the current simulation time.
- Specified by:
getSimulationTime
in interface Simulation
- Overrides:
getSimulationTime
in class SimpleSimulation
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
- Overrides:
run
in class SimpleSimulation
getMaximumRounds
public int getMaximumRounds()
setMaximumRounds
public void setMaximumRounds(int maximumRounds)
- Configure the maximum number of rounds this simulation will run before
being automatically terminated.
- Parameters:
maximumRounds
-