Class SimulationSession


  • @OpenApiAll
    public abstract class SimulationSession
    extends java.lang.Object
    The SimulationSession class.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element
      The execution element.
      protected ExecutionEngine engine
      The execution engine.
      protected SimulationExecution execution
      Execution that this session is part of.
      protected java.util.concurrent.atomic.AtomicBoolean isClosed
      The is closed flag.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SimulationSession​(boolean isMainSession)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element getElement()
      Return the execution element.
      ExecutionEngine getEngine()
      Return the execution engine.
      SimulationExecution getExecution()
      Gets the execution of this SimulationSession.
      boolean isClosed()
      Check whether the simulation session is closed/terminated or not.
      boolean isMainSession()  
      void setElement​(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
      Set the execution element.
      void setEngine​(ExecutionEngine engine)
      Set the execution engine.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • element

        protected com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element
        The execution element.
      • isClosed

        protected java.util.concurrent.atomic.AtomicBoolean isClosed
        The is closed flag. Session is closed when terminated on has run to completion
    • Constructor Detail

      • SimulationSession

        protected SimulationSession​(boolean isMainSession)
    • Method Detail

      • getElement

        public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element getElement()
        Return the execution element.
        Returns:
        the execution element
      • setElement

        public void setElement​(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
        Set the execution element.
        Parameters:
        element - the element to set
      • getEngine

        public ExecutionEngine getEngine()
        Return the execution engine.
        Returns:
        the execution engine
      • setEngine

        public void setEngine​(ExecutionEngine engine)
        Set the execution engine.
        Parameters:
        engine - the engine to set
      • getExecution

        public SimulationExecution getExecution()
        Gets the execution of this SimulationSession.
        Returns:
        the execution of this SimulationSession
      • isClosed

        public boolean isClosed()
        Check whether the simulation session is closed/terminated or not.
        Returns:
        isClosed
      • isMainSession

        public boolean isMainSession()