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>(source)
Run the simulation this environment owns.
Parameters
onceInitialized
the lambda to execute when the simulation begins.
Content copied to clipboard
atEachStep
the lambda to execute on each step of the simulation.
Content copied to clipboard
whenFinished
the lambda to execute at the end of the simulation.
Content copied to clipboard
steps
the number of steps the simulation must execute.
Content copied to clipboard