Loader

interface Loader : Serializable

An entity which is able to produce an Alchemist Simulation, resolving user defined variable values.

Properties

Link copied to clipboard
abstract val constants: Map<String, Any?>

Allows to access the currently defined constants, namely variables defined in the simulation file whose value is constant and does not depend on the value of any free variable (directly or indirectly).

Link copied to clipboard

Allows to access the currently defined dependent variable (those variables whose value can be determined given a valid set of values for the free variables).

Link copied to clipboard
abstract val launcher: Launcher

Returns the launcher to be used in to manage the simulation lifecycle.

Link copied to clipboard
Link copied to clipboard
abstract val variables: Map<String, Variable<*>>

Functions

Link copied to clipboard
open fun <T, P : Position<P>> getDefault(): Simulation<T, P>
Link copied to clipboard
abstract fun <T, P : Position<P>> getWith(values: Map<String, *>): Simulation<T, P>
Link copied to clipboard
open fun launch(launcher: Launcher = this.launcher)

Launches the simulations as configured by this loader. A custom launcher can be provided. Blocking, returns when all simulations are completed.