public class SimulationDockServiceImpl extends java.lang.Object implements SimulationDockService
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
LOGGER |
static java.lang.String |
SIMTIME_TOTAL |
Constructor and Description |
---|
SimulationDockServiceImpl(org.osgi.framework.BundleContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
java.lang.String |
getDockId()
Returns the ID of this simulation dock
|
SimuComModel |
getSimuComModel() |
SimuComStatus |
getSimuComStatus() |
void |
load(AbstractSimulationConfig config,
byte[] simulationBundle,
boolean isRemoteRun)
Takes a byte array containing a bundle jar which contains the code for a single simulation.
|
void |
resume() |
void |
simulate(AbstractSimulationConfig config,
byte[] simulationBundle,
boolean isRemoteRun)
Takes a byte array containing a bundle jar which contains the code for a single simulation.
|
void |
step() |
void |
stopSimulation()
Cancels the running simulation
|
void |
suspend() |
public static final java.lang.String SIMTIME_TOTAL
protected static final org.apache.log4j.Logger LOGGER
public SimulationDockServiceImpl(org.osgi.framework.BundleContext context)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void load(AbstractSimulationConfig config, byte[] simulationBundle, boolean isRemoteRun)
SimulationDockService
load
in interface SimulationDockService
config
- The simulation configuration object describing simulation parameterssimulationBundle
- The jar file of the bundle containing the simulationisRemoteRun
- True of the simulation should run remotely and has no access to the local
sensorframeworkpublic void simulate(AbstractSimulationConfig config, byte[] simulationBundle, boolean isRemoteRun)
SimulationDockService
simulate
in interface SimulationDockService
config
- The simulation configuration object describing simulation parameterssimulationBundle
- The jar file of the bundle containing the simulationisRemoteRun
- True of the simulation should run remotely and has no access to the local
sensorframeworkpublic SimuComModel getSimuComModel()
public void suspend()
suspend
in interface SimulationDockService
public void resume()
resume
in interface SimulationDockService
public java.lang.String getDockId()
SimulationDockService
getDockId
in interface SimulationDockService
public void stopSimulation()
SimulationDockService
stopSimulation
in interface SimulationDockService
public void step()
step
in interface SimulationDockService
public SimuComStatus getSimuComStatus()
getSimuComStatus
in interface SimulationDockService