Class DefaultLauncher
-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.Launcher
public class DefaultLauncher implements Launcher
The default launcher for simulations. If batch variables are specified, the simulation is run once for each combination of their values. If autoStart is true (default), the simulation is started automatically. If showProgress is true (default), a message is printed to the console every time a simulation completes. If parallelism is greater than 1, the simulations are run in parallel; defaults to the number of logical cores detected by the JVM.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<String>
batch
private final Boolean
autoStart
private final Boolean
showProgress
private final Integer
parallelism
-
Constructor Summary
Constructors Constructor Description DefaultLauncher(Boolean autoStart, Boolean showProgress, Integer parallelism)
DefaultLauncher(Boolean autoStart, Boolean showProgress)
DefaultLauncher(Boolean autoStart)
DefaultLauncher(List<String> batch, Boolean autoStart, Boolean showProgress, Integer parallelism)
DefaultLauncher(List<String> batch, Boolean autoStart, Boolean showProgress)
DefaultLauncher(List<String> batch, Boolean autoStart)
DefaultLauncher(List<String> batch)
DefaultLauncher()
-
Method Summary
Modifier and Type Method Description final List<String>
getBatch()
final Boolean
getAutoStart()
final Boolean
getShowProgress()
final Integer
getParallelism()
Unit
launch(Loader loader)
Launches a simulation using the provided loader. -
-
Method Detail
-
getAutoStart
final Boolean getAutoStart()
-
getShowProgress
final Boolean getShowProgress()
-
getParallelism
final Integer getParallelism()
-
launch
@Synchronized() Unit launch(Loader loader)
Launches a simulation using the provided loader.
-
-
-
-