public class SimulationManager extends Object implements Runnable
The main application class for JABM experiments when running in headless mode,
e.g. on a cluster (to run using a GUI see DesktopSimulationManager
).
Example usage:
java -ea -server
-Djabm.config=config/elfarolbar.xml net.sourceforge.jabm.SimulationManager
System parameters:
jabm.config | The name of the Spring configuration file defining the simulation model |
jabm.propertyfile | The name of a properties file which overrides the values specified in the beans configuration |
jabm.varfile | The name of a properties file which specifies the ranges of independent variables to be used for a multiple treatment factor experiment | jabm.configonly | If set to true in combintation with jabm.varfile then create experiment property files without running any simulations. This is useful for running experiments on clusters. |
DesktopSimulationManager
Modifier and Type | Field and Description |
---|---|
protected String |
baseDirName
The (optional) base directory in which subdirectories will be created
for experiments involving paramater sweeps.
|
protected boolean |
configOnly
If this option is set, then the simulation manager will create
configuration files for experiments without actually running them.
|
protected boolean |
generateSeeds |
protected String |
propFile
The file name of the .properties file to use for the experiment(s).
|
protected int |
seedMask |
static String |
SIMULATION_CONTROLLER_BEAN
The name of the spring bean representing the SimulationController
which will be used to run the experiments.
|
protected String |
varFile
The (optional) file name of the variables file.
|
Constructor and Description |
---|
SimulationManager() |
Modifier and Type | Method and Description |
---|---|
SimulationController |
getSimulationController() |
void |
launch(Runnable controller) |
static void |
main(String[] args) |
void |
run() |
void |
runSingleExperiment() |
void |
runSingleExperiment(Properties properties) |
void |
runSingleExperiment(String propFile) |
void |
setup(String baseDirName,
boolean generateSeeds,
int seedMask) |
void |
setup(String varFile,
String baseDirName,
boolean generateSeeds,
int seedMask) |
protected String propFile
protected String varFile
protected String baseDirName
protected boolean configOnly
protected boolean generateSeeds
protected int seedMask
public static final String SIMULATION_CONTROLLER_BEAN
public void launch(Runnable controller)
public SimulationController getSimulationController()
public void runSingleExperiment()
public void runSingleExperiment(Properties properties)
public void runSingleExperiment(String propFile)
public void setup(String baseDirName, boolean generateSeeds, int seedMask)
public static void main(String[] args)
Copyright © 2014. All rights reserved.