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.
Content copied to clipboard
at Each Step
the lambda to execute on each step of the simulation.
Content copied to clipboard
when Finished
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