Package org.simplesim.simulator
Class ConcurrentTSSimulator
java.lang.Object
org.simplesim.simulator.BasicSimulator
org.simplesim.simulator.SequentialTSSimulator
org.simplesim.simulator.ConcurrentTSSimulator
- All Implemented Interfaces:
Simulator
Simulator for concurrent time step simulation
This simulator calls all agents of a model at equidistant time steps. The
doEventSim
method of the agents is called in a concurrent mode and
with no specific oder every timeStep
.
This implementation is especially useful to run cellular automata.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.simplesim.simulator.Simulator
Simulator.InvalidSimulatorStateException
-
Constructor Summary
ConstructorDescriptionQuick start constructor of a concurrent time-step simulator with a given modelConcurrentTSSimulator
(BasicDomain root, MessageForwardingStrategy forwarding) -
Method Summary
Methods inherited from class org.simplesim.simulator.SequentialTSSimulator
getTimeStep
Methods inherited from class org.simplesim.simulator.BasicSimulator
getCurrentEventList, getRootDomain, getSimulationTime, registerEventsProcessedListener, unregisterEventsProcessedListener
-
Constructor Details
-
ConcurrentTSSimulator
-
ConcurrentTSSimulator
Quick start constructor of a concurrent time-step simulator with a given modelUses
RecursiveMessageForwarding
as default option.- Parameters:
root
- the root domain of the model
-
-
Method Details
-
runSimulation
Description copied from class:BasicSimulator
Starts a simulation run- Specified by:
runSimulation
in interfaceSimulator
- Overrides:
runSimulation
in classSequentialTSSimulator
- Parameters:
stop
- simulation time when the simulation should stop
-