Class SimulationSession
java.lang.Object
com.nomagic.magicdraw.simulation.execution.session.SimulationSession
The SimulationSession class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ElementThe execution element.protected ExecutionEngineThe execution engine.protected SimulationExecutionExecution that this session is part of.protected AtomicBooleanThe is closed flag. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the execution element.Return the execution engine.Gets the execution of this SimulationSession.abstract SimulationSessionbooleanisClosed()abstract booleanbooleanvoidsetElement(Element element) Set the execution element.voidsetEngine(ExecutionEngine engine) Set the execution engine.
-
Field Details
-
element
The execution element. -
engine
The execution engine. -
execution
Execution that this session is part of.SimulationExecutionmay have multiple sessions -
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
Return the execution element.- Returns:
- the execution element
-
setElement
Set the execution element.- Parameters:
element- the element to set
-
getEngine
Return the execution engine.- Returns:
- the execution engine
-
setEngine
Set the execution engine.- Parameters:
engine- the engine to set
-
getExecution
Gets the execution of this SimulationSession.- Returns:
- the execution of this SimulationSession
-
isClosed
public boolean isClosed()- Returns:
- true whether the simulation session is closed/terminated or not.
-
isClosingOrClosed
public abstract boolean isClosingOrClosed()- Returns:
- true whether the simulation is currently closing or is already closed
-
getParent
-
isMainSession
public boolean isMainSession()
-