Engine
open class Engine<T, P : Position<out P>>(environment: Environment<T, P>, scheduler: Scheduler<T>) : AbstractEngine<T, P> (source)
Represents a simulation engine that manages execution and scheduling. Provides multiple factory methods to simplify the creation process.
Parameters
environment
the simulation environment
Type Parameters
T
the concentration type
P
the position type, extending Position
Properties
Functions
Link copied to clipboard
Adds an output monitor to track simulation events.
Link copied to clipboard
Moves the simulation forward until the given step is reached.
Link copied to clipboard
Moves the simulation forward until the given time is reached.
Link copied to clipboard
Pauses the simulation.
Link copied to clipboard
Resumes the simulation.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Terminates the simulation.
Link copied to clipboard
open override fun waitFor(state: SimulationState, timeout: Long, timeunit: TimeUnit): SimulationState
Waits for the simulation to reach a given status.