startSimulation

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

onceInitialized

the lambda to execute when the simulation begins

atEachStep

the lambda to execute on each step of the simulation

whenFinished

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