start Simulation
fun <T, P : Position<P>, Vector<P>> Simulation<T, P>.startSimulation(onceInitialized: (EuclideanEnvironment<T, P>) -> Unit = { }, atEachStep: (EuclideanEnvironment<T, P>, Actionable<T>?, Time, Long) -> Unit = { _, _, _, _ -> }, whenFinished: (EuclideanEnvironment<T, P>, Time, Long) -> Unit = { _, _, _ -> }, steps: Long = 10000): EuclideanEnvironment<T, P>
Run the simulation this environment owns.
Parameters
once Initialized
the lambda to execute when the simulation begins
at Each Step
the lambda to execute on each step of the simulation
when Finished
the lambda to execute at the end of the simulation
steps
the number of steps the simulation must execute
Type Parameters
T
the concentration type used by the simulation
P
the position/vector type used by the simulation