public interface ISimulationControl
AbstractMain
and provides the missing information.Modifier and Type | Method and Description |
---|---|
Throwable |
getErrorThrowable()
Returns an exception which caused the simulation to terminate in case of simulation errors as
indicated by the
SimuComResult returned by the startSimulation method |
SimuComStatus |
getStatus()
Retrieve an object containing the status of this simulation.
|
void |
prepareSimulation(AbstractSimulationConfig config,
IStatusObserver statusObserver,
boolean useOwnSensorstorage)
Prepare a simulation run
|
SimulationResult |
startSimulation(AbstractSimulationConfig config,
IStatusObserver statusObserver,
boolean useOwnSensorstorage)
Start a simulation run
|
void |
stopSimulation()
Cancels a running simulation by disallowing the generation of new simulation events
|
void prepareSimulation(AbstractSimulationConfig config, IStatusObserver statusObserver, boolean useOwnSensorstorage)
config
- The configuration object which sets many simulation parameters like stop
conditions, storage location, etc.statusObserver
- An observer which gets notifications on the simulation progressuseOwnSensorstorage
- If true, the simulation uses an own, temporary result store instead of the
sensorfactory storage passed in the simulation parameter object. Use this for
remote simulation docks which do not have access to the local sensor factory
storagesSimulationResult startSimulation(AbstractSimulationConfig config, IStatusObserver statusObserver, boolean useOwnSensorstorage)
config
- The configuration object which sets many simulation parameters like stop
conditions, storage location, etc.statusObserver
- An observer which gets notifications on the simulation progressuseOwnSensorstorage
- If true, the simulation uses an own, temporary result store instead of the
sensorfactory storage passed in the simulation parameter object. Use this for
remote simulation docks which do not have access to the local sensor factory
storagesvoid stopSimulation()
Throwable getErrorThrowable()
SimuComResult
returned by the startSimulation methodSimuComStatus getStatus()
SimuComStatus
object containing the simulation status