Class SimulationDockServiceImpl
java.lang.Object
de.uka.ipd.sdq.simucomframework.simulationdock.SimulationDockServiceImpl
- All Implemented Interfaces:
SimulationDockService
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.apache.log4j.Logger
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
finalize()
Returns the ID of this simulation dockvoid
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
Cancels the running simulationvoid
suspend()
-
Field Details
-
SIMTIME_TOTAL
- See Also:
-
LOGGER
protected static final org.apache.log4j.Logger LOGGER
-
-
Constructor Details
-
SimulationDockServiceImpl
public SimulationDockServiceImpl(org.osgi.framework.BundleContext context)
-
-
Method Details
-
finalize
-
load
Description copied from interface:SimulationDockService
Takes a byte array containing a bundle jar which contains the code for a single simulation. Installs, and prepares the simulation.- Specified by:
load
in interfaceSimulationDockService
- Parameters:
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 sensorframework
-
simulate
Description copied from interface:SimulationDockService
Takes a byte array containing a bundle jar which contains the code for a single simulation. Installs, starts, and runs the contained simulation.- Specified by:
simulate
in interfaceSimulationDockService
- Parameters:
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 sensorframework
-
getSimuComModel
-
suspend
public void suspend()- Specified by:
suspend
in interfaceSimulationDockService
-
resume
public void resume()- Specified by:
resume
in interfaceSimulationDockService
-
getDockId
Description copied from interface:SimulationDockService
Returns the ID of this simulation dock- Specified by:
getDockId
in interfaceSimulationDockService
- Returns:
- The ID of the simulation dock
-
stopSimulation
public void stopSimulation()Description copied from interface:SimulationDockService
Cancels the running simulation- Specified by:
stopSimulation
in interfaceSimulationDockService
-
step
public void step()- Specified by:
step
in interfaceSimulationDockService
-
getSimuComStatus
- Specified by:
getSimuComStatus
in interfaceSimulationDockService
-