public class ExperimentStarter extends java.lang.Object implements SimClockListener, ExperimentListener
ExperimentStarterGUI
.Constructor and Description |
---|
ExperimentStarter(ExperimentStarterGUI gui)
Creates a new Launcher with the default title
|
ExperimentStarter(ExperimentStarterGUI gui,
java.lang.Class modelClass,
java.lang.Class expRunnerClass)
Creates a new Launcher and sets the current ModelFactory
|
ExperimentStarter(ExperimentStarterGUI gui,
java.lang.Class modelClass,
java.lang.Class expRunnerClass,
java.lang.String[] args)
Creates a new Launcher and sets the current ModelFactory
such a command line parameters are passed to the model.
|
ExperimentStarter(ExperimentStarterGUI gui,
java.lang.String confFileName)
Creates Launcher with an experiment- or batchfile
|
Modifier and Type | Method and Description |
---|---|
void |
clockAdvanced(SimRunEvent e)
Called when the currently active experiment's SimClock is advanced
|
void |
experimentPaused(SimRunEvent e)
Called when experiment is paused.
|
void |
experimentRunning(SimRunEvent e)
Called when experiment is started or resumed.
|
void |
experimentStopped(SimRunEvent e)
Called when experiment is stopped.
|
public ExperimentStarter(ExperimentStarterGUI gui)
gui
- ExperimentStarterGUI: the GUI to be used with the
ExperimentStarterpublic ExperimentStarter(ExperimentStarterGUI gui, java.lang.Class modelClass, java.lang.Class expRunnerClass)
gui
- ExperimentStarterGUI: the GUI to be used with the
ExperimentStartermodelClass
- Class: The Class the contains the Model to be run with the
ExperimentStarter. Must be a subclass of
Model
expRunnerClass
- Class: Must refer to the RunnerClass that belongs to
modelClasspublic ExperimentStarter(ExperimentStarterGUI gui, java.lang.Class modelClass, java.lang.Class expRunnerClass, java.lang.String[] args)
gui
- ExperimentStarterGUI: the GUI to be used with the
ExperimentStartermodelClass
- Class: The Class the contains the Model to be run with the
ExperimentStarter. Must be a subclass of
Model
expRunnerClass
- Class: Must refer to the RunnerClass that belongs to
modelClassargs
- String[]: Command line parameters to pass to the model;
will be made available to the model via its parameter manager
as cmdparam
public ExperimentStarter(ExperimentStarterGUI gui, java.lang.String confFileName)
gui
- ExperimentStarterGUI: the GUI to be used with the
ExperimentStarterconfFileName
- Sring: must refer to an XML-File that contains the information
for the batch run.public void clockAdvanced(SimRunEvent e)
clockAdvanced
in interface SimClockListener
e
- SimRunEvent: A SimRunEvent.public void experimentRunning(SimRunEvent e)
experimentRunning
in interface ExperimentListener
public void experimentStopped(SimRunEvent e)
experimentStopped
in interface ExperimentListener
public void experimentPaused(SimRunEvent e)
experimentPaused
in interface ExperimentListener