Class SimulationDockServiceImpl
- java.lang.Object
-
- de.uka.ipd.sdq.simucomframework.simulationdock.SimulationDockServiceImpl
-
- All Implemented Interfaces:
SimulationDockService
public class SimulationDockServiceImpl extends Object implements SimulationDockService
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.Logger
LOGGER
static String
SIMTIME_TOTAL
-
Constructor Summary
Constructors Constructor Description SimulationDockServiceImpl(org.osgi.framework.BundleContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalize()
String
getDockId()
Returns the ID of this simulation dockSimuComModel
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 simulationvoid
suspend()
-
-
-
Field Detail
-
SIMTIME_TOTAL
public static final String SIMTIME_TOTAL
- See Also:
- Constant Field Values
-
LOGGER
protected static final org.apache.log4j.Logger LOGGER
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
load
public void load(AbstractSimulationConfig config, byte[] simulationBundle, boolean isRemoteRun)
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
public void simulate(AbstractSimulationConfig config, byte[] simulationBundle, boolean isRemoteRun)
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
public SimuComModel getSimuComModel()
-
suspend
public void suspend()
- Specified by:
suspend
in interfaceSimulationDockService
-
resume
public void resume()
- Specified by:
resume
in interfaceSimulationDockService
-
getDockId
public String 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
public SimuComStatus getSimuComStatus()
- Specified by:
getSimuComStatus
in interfaceSimulationDockService
-
-