public class ExperimentRunThread extends java.lang.Thread implements ISimulatorCallbackListener
Modifier and Type | Field and Description |
---|---|
AppConfig |
appConfig |
private java.util.Map<java.lang.String,IConversion> |
conversionServices |
private IExperiment |
experiment |
private IExperimentListener |
listener |
private static Log |
logger |
private RuntimeProject |
runtimeProject |
private java.util.Map<java.lang.String,SimulatorRuntime> |
simulatorRuntimes |
private java.util.Map<java.lang.String,ISimulator> |
simulatorServices |
Constructor and Description |
---|
ExperimentRunThread(IExperiment experiment,
RuntimeProject runtimeProject,
IExperimentListener listener) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelRun() |
private boolean |
checkAllSimulatorsAreDone() |
void |
endOfSteps(IAspectConfiguration aspectConfiguration,
java.util.Map<java.io.File,ResultsFormat> results) |
void |
externalProcessFailed(java.lang.String message,
java.lang.Exception e) |
private void |
init(IExperiment experiment) |
void |
release() |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private static Log logger
public AppConfig appConfig
private IExperiment experiment
private java.util.Map<java.lang.String,ISimulator> simulatorServices
private java.util.Map<java.lang.String,IConversion> conversionServices
private java.util.Map<java.lang.String,SimulatorRuntime> simulatorRuntimes
private IExperimentListener listener
private RuntimeProject runtimeProject
public ExperimentRunThread(IExperiment experiment, RuntimeProject runtimeProject, IExperimentListener listener)
experiment
- runtimeExperiment
- project
- geppettoCallbackListener
- listener
- private void init(IExperiment experiment) throws GeppettoInitializationException
experiment
- GeppettoInitializationException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
private boolean checkAllSimulatorsAreDone()
protected void cancelRun() throws GeppettoExecutionException
GeppettoExecutionException
public void release()
public void endOfSteps(IAspectConfiguration aspectConfiguration, java.util.Map<java.io.File,ResultsFormat> results) throws GeppettoExecutionException
endOfSteps
in interface ISimulatorCallbackListener
results
- The file containing the results of the simulation in the Geppetto HDF5 recording formatGeppettoExecutionException
public void externalProcessFailed(java.lang.String message, java.lang.Exception e)
externalProcessFailed
in interface ISimulatorCallbackListener