Package org.simplesim.simulator
Class SequentialTSSimulator
java.lang.Object
org.simplesim.simulator.BasicSimulator
org.simplesim.simulator.SequentialTSSimulator
- All Implemented Interfaces:
Simulator
- Direct Known Subclasses:
ConcurrentTSSimulator
Simulator for sequential time step simulation
This simulator calls all agents of a model at equidistant time steps. The
doEventSim
method of the agents is called sequentially 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
ConstructorsConstructorDescriptionQuick start constructor of a sequential time-step simulator with a given modelSequentialTSSimulator
(BasicDomain rt, MessageForwardingStrategy forwarding) -
Method Summary
Methods inherited from class org.simplesim.simulator.BasicSimulator
getCurrentEventList, getRootDomain, getSimulationTime, registerEventsProcessedListener, unregisterEventsProcessedListener
-
Constructor Details
-
SequentialTSSimulator
-
SequentialTSSimulator
Quick start constructor of a sequential 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
- Specified by:
runSimulation
in classBasicSimulator
- Parameters:
stop
- simulation time when the simulation should stop
-
getTimeStep
-