Class SimulationExecution

  • All Implemented Interfaces:
    com.nomagic.magicdraw.simulation.execution.service.ExecutionWithServiceSupport

    @OpenApiAll
    public abstract class SimulationExecution
    extends java.lang.Object
    implements com.nomagic.magicdraw.simulation.execution.service.ExecutionWithServiceSupport
    The SimulationExecution class.
    • Field Detail

      • simulationListeners

        protected final java.util.concurrent.CopyOnWriteArrayList<SimulationExecutionListener> simulationListeners
        Simulation Execution Listener.
    • Constructor Detail

      • SimulationExecution

        public SimulationExecution()
    • Method Detail

      • getExecutionLocus

        public abstract fUML.Semantics.Loci.LociL1.Locus getExecutionLocus()
        Get the execution Locus.
        Returns:
        Locus
      • getMainSession

        public abstract SimulationSession getMainSession()
        get main session.
        Returns:
        main session
      • addSimulationListener

        public boolean addSimulationListener​(SimulationExecutionListener listener)
        Add the specified simulation execution listener.
        Parameters:
        listener - the specified simulation execution listener
        Returns:
        true if this listener was not already registered
      • addSimulationListeners

        public void addSimulationListeners​(java.util.Collection<SimulationExecutionListener> listeners)
        Add all simulation execution listeners, if not already registered.
        Parameters:
        listeners - simulation execution listeners
      • removeSimulationListener

        public boolean removeSimulationListener​(SimulationExecutionListener listener)
        Removes the specified simulation execution listener.
        Parameters:
        listener - the specified simulation execution listener
        Returns:
        true if this set contained the specified element
      • getSimulationExecutionListeners

        public java.util.Set<SimulationExecutionListener> getSimulationExecutionListeners()
        get the registered SimulationExecutionListener.
        Returns:
        Set of registered SimulationExecutionListener
      • getSimulationOptions

        public abstract SimulationOptions getSimulationOptions()
        get the simulation options
        Specified by:
        getSimulationOptions in interface com.nomagic.magicdraw.simulation.execution.service.ExecutionWithServiceSupport
        Returns:
        SimulationOptions