Class SimulationExecution
- java.lang.Object
-
- com.nomagic.magicdraw.simulation.execution.SimulationExecution
-
@OpenApiAll public abstract class SimulationExecution extends java.lang.ObjectThe SimulationExecution class.
-
-
Field Summary
Fields Modifier and Type Field Description protected SimulationSessionmainSessionthe main session of this simulation execution.protected java.util.concurrent.CopyOnWriteArrayList<SimulationExecutionListener>simulationListenersSimulation Execution Listener.protected SimulationOptionssimulationOptionsthe simulation options
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimulationExecution(fUML.Semantics.Loci.LociL1.Locus locus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddSimulationListener(SimulationExecutionListener listener)Add the specified simulation execution listener.voidaddSimulationListeners(java.util.Collection<SimulationExecutionListener> listeners)Add all simulation execution listeners, if not already registered.fUML.Semantics.Loci.LociL1.LocusgetExecutionLocus()Get the executionLocus.SimulationSessiongetMainSession()get main session.java.util.Set<SimulationExecutionListener>getSimulationExecutionListeners()get the registered SimulationExecutionListener.SimulationOptionsgetSimulationOptions()get the simulation optionsbooleanremoveSimulationListener(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.concurrent.CopyOnWriteArrayList<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 listener was not already registered
-
addSimulationListeners
public void addSimulationListeners(java.util.Collection<SimulationExecutionListener> listeners)
Add all simulation execution listeners, if not already registered.- Parameters:
listeners- simulation execution listeners
-
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
-
-