extractData

open override fun <T> extractData(environment: Environment<T, *>, reaction: Actionable<T>?, time: Time, step: Long): Map<String, Int>(source)

Extracts properties from an environment.

Implementations must return a map whose iteration order is predictable or whose keys match columnNames. Concretely the returned map must satisfy at least one of the following:

Return

a map of property names to extracted values. The map must follow one of the ordering/key contracts described above so that callers can consistently determine column ordering when producing tabular outputs.

Parameters

environment

the environment from which to extract values

reaction

the last executed actionable (may be null)

time

the current simulation time

step

the current simulation step

Type Parameters

T

the concentration type used by the environment