public class Run
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNDEFINED |
Constructor and Description |
---|
Run()
Creates a new empty run.
|
Run(Model m,
ExperimentRunner exp)
Creates a new run without changing model and experiment parameter
settings.
|
Run(Model defaultModel,
ExperimentRunner defaultExpRunner,
java.util.Map defaultExpSettings,
java.util.Map defaultModelParams,
int number)
Creates a new run.
|
Modifier and Type | Method and Description |
---|---|
ExperimentRunner |
getExperimentRunner() |
Model |
getModel() |
static void |
main(java.lang.String[] args) |
void |
readFromNode(org.w3c.dom.Element e)
Reads a run from a DOM node representing an XML parameter file.
|
static void |
readParamList(org.w3c.dom.Node src,
java.util.Map dst)
Reads a parameter list from a DOM node to a java.util.Map.
|
public static final java.lang.String UNDEFINED
public Run(Model defaultModel, ExperimentRunner defaultExpRunner, java.util.Map defaultExpSettings, java.util.Map defaultModelParams, int number)
defaultModel
- the model to run an experiment withdefaultExpRunner
- the experiment runner used for running the experimentdefaultExpSettings
- the experiment parameter settingsdefaultModelParams
- the model parameter settingsnumber
- internal number of the run (only important if used with
batches)public Run(Model m, ExperimentRunner exp)
m
- the model to run an experiment withexp
- the experiment runner used for running the experiment.public Run()
public Model getModel()
public void readFromNode(org.w3c.dom.Element e)
n
- the DOM node to read the run frompublic ExperimentRunner getExperimentRunner()
public static void readParamList(org.w3c.dom.Node src, java.util.Map dst)
src
- a DOM node containing XML based parameter settingsdst
- a java.uztil.Map to copy the parameter settings to.public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception