AbstractEngine
abstract class AbstractEngine<T, P : Position<out P>>(val environment: Environment<T, P>) : Simulation<T, P> (source)
Abstract base class for simulation engines, providing common functionality for status management, time tracking, command scheduling, and output monitoring.
Type Parameters
T
the concentration type
P
the position type
Inheritors
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.