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.ExecutionWithServiceSupport
The SimulationExecution class.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.CopyOnWriteArrayList<SimulationExecutionListener>
simulationListeners
Simulation Execution Listener.
-
Constructor Summary
Constructors Constructor Description SimulationExecution()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
addSimulationListener(SimulationExecutionListener listener)
Add the specified simulation execution listener.void
addSimulationListeners(java.util.Collection<SimulationExecutionListener> listeners)
Add all simulation execution listeners, if not already registered.abstract fUML.Semantics.Loci.LociL1.Locus
getExecutionLocus()
Get the executionLocus
.abstract SimulationSession
getMainSession()
get main session.abstract SimulationOptions
getOptions()
java.util.Set<SimulationExecutionListener>
getSimulationExecutionListeners()
get the registered SimulationExecutionListener.SimulationOptions
getSimulationOptions()
Deprecated.renamed togetOptions()
boolean
removeSimulationListener(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
@Deprecated public SimulationOptions getSimulationOptions()
Deprecated.renamed togetOptions()
-
getOptions
public abstract SimulationOptions getOptions()
- Specified by:
getOptions
in interfacecom.nomagic.magicdraw.simulation.execution.service.ExecutionWithServiceSupport
- Returns:
- SimulationOptions of this execution
-
-