Class SimulationSession
- java.lang.Object
-
- com.nomagic.magicdraw.simulation.execution.session.SimulationSession
-
@OpenApiAll public class SimulationSession extends java.lang.ObjectThe SimulationSession class.
-
-
Field Summary
Fields Modifier and Type Field Description protected ElementelementThe execution element.protected ExecutionEngineengineThe execution engine.protected SimulationExecutionexecutionExecution of this session.protected java.util.concurrent.atomic.AtomicBooleanisClosedThe is closed.
-
Constructor Summary
Constructors Constructor Description SimulationSession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementgetElement()Return the execution element.ExecutionEnginegetEngine()Return the execution engine.SimulationExecutiongetExecution()Gets the execution of this SimulationSession.booleanisClosed()Check whether the simulation session is closed/terminated or not.voidsetElement(Element element)Set the execution element.voidsetEngine(ExecutionEngine engine)Set the execution engine.
-
-
-
Field Detail
-
element
protected Element element
The execution element.
-
engine
protected ExecutionEngine engine
The execution engine.
-
execution
protected SimulationExecution execution
Execution of this session.
-
isClosed
protected java.util.concurrent.atomic.AtomicBoolean isClosed
The is closed.
-
-
Method Detail
-
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
-
-