simulation2D

fun <T, I : Incarnation<T, Euclidean2DPosition>> simulation2D(incarnation: I, block: context(I) SimulationContext<T, Euclidean2DPosition>.() -> Unit): Loader

Convenience overload of simulation for scenarios running in a 2D Euclidean space.

This function only constrains the position type to Euclidean2DPosition and otherwise delegates to simulation.

Return

a Loader that can build the simulation described by block.

Parameters

incarnation

the incarnation used to create domain-specific objects.

block

the DSL block defining the scenario.

Type Parameters

T

the concentration type used by the simulation.

I

the specific incarnation type.