environment
abstract fun <E : Environment<T, P>> environment(environment: E, environmentConfiguration: context(E) EnvironmentContext<T, P>.() -> Unit)
Sets the simulation environment and configures it through environmentConfiguration.
The environmentConfiguration is executed with the provided environment as a context receiver, and with an EnvironmentContext as receiver, enabling environment-level configuration (deployments, layers, global programs, linking rules, terminators).
Parameters
environment
the environment instance to use for the simulation.
environment Configuration
the environment configuration block.