Class SimulationExecution
- java.lang.Object
-
- com.nomagic.magicdraw.simulation.execution.SimulationExecution
-
@OpenApiAll public abstract class SimulationExecution extends java.lang.Object
The SimulationExecution class.
-
-
Field Summary
Fields Modifier and Type Field Description protected SimulationSession
mainSession
the main session of this simulation execution.protected java.util.Set<SimulationExecutionListener>
simulationListeners
Simulation Execution Listener.protected SimulationOptions
simulationOptions
the simulation options
-
Constructor Summary
Constructors Modifier Constructor Description protected
SimulationExecution(fUML.Semantics.Loci.LociL1.Locus locus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addSimulationListener(SimulationExecutionListener listener)
Add the specified simulation execution listener.fUML.Semantics.Loci.LociL1.Locus
getExecutionLocus()
Get the executionLocus
.SimulationSession
getMainSession()
get main session.java.util.Set<SimulationExecutionListener>
getSimulationExecutionListeners()
get the registered SimulationExecutionListener.SimulationOptions
getSimulationOptions()
get the simulation optionsboolean
removeSimulationListener(SimulationExecutionListener listener)
Removes the specified simulation execution listener.
-
-
-
Field Detail
-
mainSession
protected SimulationSession mainSession
the main session of this simulation execution.
-
simulationListeners
protected final java.util.Set<SimulationExecutionListener> simulationListeners
Simulation Execution Listener.
-
simulationOptions
protected SimulationOptions simulationOptions
the simulation options
-
-
Method Detail
-
getExecutionLocus
public fUML.Semantics.Loci.LociL1.Locus getExecutionLocus()
Get the executionLocus
.- Returns:
Locus
-
getMainSession
public 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 set did not already contain the specified listener
-
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 SimulationOptions getSimulationOptions()
get the simulation options- Returns:
- SimulationOptions
-
-