Package it.unibo.alchemist.test
Object AlchemistTesting
-
- All Implemented Interfaces:
public class AlchemistTesting
-
-
Field Summary
Fields Modifier and Type Field Description public final static AlchemistTesting
INSTANCE
-
Method Summary
Modifier and Type Method Description final static <T extends Any> Continuous2DEnvironment<T>
createEmptyEnvironment(OutputMonitor<T, Euclidean2DPosition> outputMonitors)
Builds an empty environment, building a simulation Engine, and binding them. final static <T extends Any, P extends Position<P>> Simulation<T, P>
terminatingAfterSteps(Simulation<T, P> $self, Long finalStep)
final static <T extends Any, P extends Position<P>> Simulation<T, P>
loadAlchemist(String simulationResource, Map<String, ?> variables)
Prepares a Simulation given a simulationResource and, optionally, the variables' bindings. final static Loader
loadAlchemistFromResource(String simulationResource)
Prepares a Loader given a simulationResource. final static <T extends Any, P extends Position<P>> Simulation<T, P>
runInCurrentThread(Simulation<T, P> $self)
Runs an existing Simulation in the current thread. -
-
Method Detail
-
createEmptyEnvironment
final static <T extends Any> Continuous2DEnvironment<T> createEmptyEnvironment(OutputMonitor<T, Euclidean2DPosition> outputMonitors)
Builds an empty environment, building a simulation Engine, and binding them. Optionally, some OutputMonitors can be provided.
-
terminatingAfterSteps
final static <T extends Any, P extends Position<P>> Simulation<T, P> terminatingAfterSteps(Simulation<T, P> $self, Long finalStep)
-
loadAlchemist
final static <T extends Any, P extends Position<P>> Simulation<T, P> loadAlchemist(String simulationResource, Map<String, ?> variables)
Prepares a Simulation given a simulationResource and, optionally, the variables' bindings.
-
loadAlchemistFromResource
final static Loader loadAlchemistFromResource(String simulationResource)
Prepares a Loader given a simulationResource.
-
runInCurrentThread
final static <T extends Any, P extends Position<P>> Simulation<T, P> runInCurrentThread(Simulation<T, P> $self)
Runs an existing Simulation in the current thread.
-
-
-
-