getWith

abstract fun <T, P : Position<P>> getWith(values: Map<String, *>): Simulation<T, P>

Returns a simulation with variables set according to the provided values map.

Each entry in values maps a variable name to the desired value. Variables not present in the map will be initialized to their default values.

Return

an instance of Simulation with variables initialized to the specified values

Parameters

values

a map specifying name-value bindings for the variables in this scenario

Type Parameters

T

the concentration type

P

the position type used by the simulation