java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Reportable
desmoj.core.simulator.Model
de.uka.ipd.sdq.simulation.abstractsimengine.desmoj.DesmoJModel
All Implemented Interfaces:
ISimulationModel

public class DesmoJModel extends desmoj.core.simulator.Model implements ISimulationModel
  • Constructor Summary

    Constructors
    Constructor
    Description
    DesmoJModel(ISimulationModel model, String modelName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    void
    Cleans up when the simulation stops.
    Returns the configuration of the simulation run.
    Creation of new elements, e.g.
    Offers means to control the simulation run, e.g.
    void
    Initialises the simulation.
    void
    void

    Methods inherited from class desmoj.core.simulator.Model

    checkCompatibility, connectToExperiment, createReporter, getEntities, getEntity, getExperiment, getParameterManager, getReportables, hasSubModels, init, isConnected, isMainModel, isSubModel, reset

    Methods inherited from class desmoj.core.simulator.Reportable

    getCorrespondingSchedulable, getObservations, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable

    Methods inherited from class desmoj.core.simulator.ModelComponent

    current, currentEntity, currentEntityAll, currentEvent, currentlySendDebugNotes, currentlySendTraceNotes, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn

    Methods inherited from class desmoj.core.simulator.NamedObject

    getName, getQuotedName, rename, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • description

      public String description()
      Specified by:
      description in class desmoj.core.simulator.Model
    • doInitialSchedules

      public void doInitialSchedules()
      Specified by:
      doInitialSchedules in class desmoj.core.simulator.Model
    • finalise

      public void finalise()
      Cleans up when the simulation stops.

      This method is called directly after the simulation have stopped.

      Specified by:
      finalise in interface ISimulationModel
    • getConfiguration

      public ISimulationConfig getConfiguration()
      Returns the configuration of the simulation run. Each running simulation model has a configuration.
      Specified by:
      getConfiguration in interface ISimulationModel
    • getSimEngineFactory

      public ISimEngineFactory getSimEngineFactory()
      Creation of new elements, e.g. events and processes, in the simulation.
      Specified by:
      getSimEngineFactory in interface ISimulationModel
      Returns:
      Factory to create element in the event-based simulation.
    • getSimulationControl

      public ISimulationControl getSimulationControl()
      Offers means to control the simulation run, e.g. to start and stop the simulation.
      Specified by:
      getSimulationControl in interface ISimulationModel
      Returns:
      Controller for the event-based simulation.
    • init

      public void init()
      Initialises the simulation. Especially, the initial events are scheduled here before the simulation starts. If no events are scheduled, the simulator stops immediately after being started.

      This method is called directly before the simulation starts.

      Specified by:
      init in interface ISimulationModel
      Specified by:
      init in class desmoj.core.simulator.Model
    • setSimulationControl

      public void setSimulationControl(ISimulationControl control)
      Specified by:
      setSimulationControl in interface ISimulationModel
    • setSimulationEngineFactory

      public void setSimulationEngineFactory(ISimEngineFactory factory)
      Specified by:
      setSimulationEngineFactory in interface ISimulationModel