Interface Loader
-
- All Implemented Interfaces:
-
java.io.Serializable
public interface Loader implements Serializable
An entity which is able to produce an Alchemist Simulation, resolving user defined variable values.
-
-
Method Summary
Modifier and Type Method Description <T extends Any, P extends Position<P>> Simulation<T, P>
getDefault()
abstract <T extends Any, P extends Position<P>> Simulation<T, P>
getWith(Map<String, ?> values)
Unit
launch(Launcher launcher)
Launches the simulations as configured by this loader. abstract Map<String, Object>
getConstants()
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). abstract List<String>
getRemoteDependencies()
abstract Launcher
getLauncher()
Returns the launcher to be used in to manage the simulation lifecycle. abstract Map<String, DependentVariable<?>>
getDependentVariables()
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). abstract Map<String, Variable<?>>
getVariables()
-
-
Method Detail
-
getDefault
<T extends Any, P extends Position<P>> Simulation<T, P> getDefault()
- Returns:
an Simulation with all the variables set at their default values </P></T>
-
getWith
abstract <T extends Any, P extends Position<P>> Simulation<T, P> getWith(Map<String, ?> values)
- Parameters:
values
- a map specifying name-value bindings for the variables in this scenario- Returns:
an Simulation with all the variables set at the specified values. If the value is unspecified, the default is used instead </P></T>
-
launch
Unit launch(Launcher launcher)
Launches the simulations as configured by this loader. A custom launcher can be provided. Blocking, returns when all simulations are completed.
- Parameters:
launcher
- the launcher to be used
-
getConstants
abstract Map<String, Object> getConstants()
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).
- Returns:
a Map between variable names and their computed value
-
getRemoteDependencies
abstract List<String> getRemoteDependencies()
- Returns:
remote dependencies files
-
getLauncher
abstract Launcher getLauncher()
Returns the launcher to be used in to manage the simulation lifecycle.
- Returns:
launcher
-
getDependentVariables
abstract Map<String, DependentVariable<?>> getDependentVariables()
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).
- Returns:
a Map between variable names and their actual representation
-
getVariables
abstract Map<String, Variable<?>> getVariables()
- Returns:
a Map between variable names and their actual representation
-
-
-
-