Class SimulationExecution
- java.lang.Object
-
- com.nomagic.magicdraw.simulation.execution.SimulationExecution
-
- All Implemented Interfaces:
com.nomagic.magicdraw.simulation.execution.service.ExecutionWithServiceSupport
@OpenApiAll public abstract class SimulationExecution extends java.lang.Object implements com.nomagic.magicdraw.simulation.execution.service.ExecutionWithServiceSupportThe SimulationExecution class.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.CopyOnWriteArrayList<SimulationExecutionListener>simulationListenersSimulation Execution Listener.
-
Constructor Summary
Constructors Constructor Description SimulationExecution()
-
Method Summary
All Methods Instance Methods Abstract 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.abstract fUML.Semantics.Loci.LociL1.LocusgetExecutionLocus()Get the executionLocus.abstract SimulationSessiongetMainSession()get main session.java.util.Set<SimulationExecutionListener>getSimulationExecutionListeners()get the registered SimulationExecutionListener.abstract SimulationOptionsgetSimulationOptions()get the simulation optionsbooleanremoveSimulationListener(SimulationExecutionListener listener)Removes the specified simulation execution listener.
-
-
-
Field Detail
-
simulationListeners
protected final java.util.concurrent.CopyOnWriteArrayList<SimulationExecutionListener> simulationListeners
Simulation Execution Listener.
-
-
Method Detail
-
getExecutionLocus
public abstract fUML.Semantics.Loci.LociL1.Locus getExecutionLocus()
Get the executionLocus.- Returns:
Locus
-
getMainSession
public abstract 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 abstract SimulationOptions getSimulationOptions()
get the simulation options- Specified by:
getSimulationOptionsin interfacecom.nomagic.magicdraw.simulation.execution.service.ExecutionWithServiceSupport- Returns:
- SimulationOptions
-
-