Class SimulationDockServiceImpl

java.lang.Object
de.uka.ipd.sdq.simucomframework.simulationdock.SimulationDockServiceImpl
All Implemented Interfaces:
SimulationDockService

public class SimulationDockServiceImpl extends Object implements SimulationDockService
  • Field Details

    • SIMTIME_TOTAL

      public static final String 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

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      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 interface SimulationDockService
      Parameters:
      config - The simulation configuration object describing simulation parameters
      simulationBundle - The jar file of the bundle containing the simulation
      isRemoteRun - 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 interface SimulationDockService
      Parameters:
      config - The simulation configuration object describing simulation parameters
      simulationBundle - The jar file of the bundle containing the simulation
      isRemoteRun - 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 interface SimulationDockService
    • resume

      public void resume()
      Specified by:
      resume in interface SimulationDockService
    • getDockId

      public String getDockId()
      Description copied from interface: SimulationDockService
      Returns the ID of this simulation dock
      Specified by:
      getDockId in interface SimulationDockService
      Returns:
      The ID of the simulation dock
    • stopSimulation

      public void stopSimulation()
      Description copied from interface: SimulationDockService
      Cancels the running simulation
      Specified by:
      stopSimulation in interface SimulationDockService
    • step

      public void step()
      Specified by:
      step in interface SimulationDockService
    • getSimuComStatus

      public SimuComStatus getSimuComStatus()
      Specified by:
      getSimuComStatus in interface SimulationDockService