public class RepeatedInteractionSimulation extends SimpleSimulation implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
maximumRounds
The maximum number of rounds.
|
protected int |
round
The current round a.k.a.
|
agentInitialiser, agentMixer, isPaused, isRunning, PAUSE_SLEEP_INTERVAL_MS, population, simulationController, slowSleepInterval
Constructor and Description |
---|
RepeatedInteractionSimulation() |
RepeatedInteractionSimulation(SimulationController simulationController) |
Modifier and Type | Method and Description |
---|---|
int |
getMaximumRounds() |
SimulationTime |
getSimulationTime()
Query the current simulation time.
|
void |
run() |
void |
setMaximumRounds(int maximumRounds)
Configure the maximum number of rounds this simulation will run before
being automatically terminated.
|
begin, end, step
addListener, fireEvent, getAgentInitialiser, getAgentMixer, getPopulation, getSimulationController, getSlowSleepInterval, initialiseAgents, invokeAgentInteractions, pause, resume, setAgentInitialiser, setAgentMixer, setPopulation, setSimulationController, setSlowSleepInterval, slow, terminate, waitIfPaused, waitIfSlowed
protected int round
protected int maximumRounds
public RepeatedInteractionSimulation(SimulationController simulationController)
public RepeatedInteractionSimulation()
public SimulationTime getSimulationTime()
Simulation
getSimulationTime
in interface Simulation
getSimulationTime
in class SimpleSimulation
public void run()
run
in interface Runnable
run
in class SimpleSimulation
public int getMaximumRounds()
public void setMaximumRounds(int maximumRounds)
maximumRounds
- Copyright © 2014. All rights reserved.