Class SimulationSession

java.lang.Object
com.nomagic.magicdraw.simulation.execution.session.SimulationSession

@OpenApiAll public abstract class SimulationSession extends Object
The SimulationSession class.
  • Field Details

    • element

      protected Element element
      The execution element.
    • engine

      protected ExecutionEngine engine
      The execution engine.
    • execution

      protected SimulationExecution execution
      Execution that this session is part of. SimulationExecution may have multiple sessions
    • isClosed

      protected AtomicBoolean isClosed
      The is closed flag. Session is closed when terminated on has run to completion
  • Constructor Details

    • SimulationSession

      protected SimulationSession(boolean isMainSession)
  • Method Details

    • getElement

      public Element getElement()
      Return the execution element.
      Returns:
      the execution element
    • setElement

      public void setElement(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()