Class SimulationExecutionListener
- java.lang.Object
-
- com.nomagic.magicdraw.simulation.execution.SimulationExecutionListener
-
@OpenApiAll public class SimulationExecutionListener extends java.lang.Object
The listener class for receiving execution events. Create the custom class that extends this class to capturing execution events.
-
-
Constructor Summary
Constructors Constructor Description SimulationExecutionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeContextInitialized(SimulationExecution execution)
Event fired before context ofexecution
is initialized.void
beforeObjectDestroyed(fUML.Semantics.Classes.Kernel.Object_ object)
Event occurred before object destroyed.void
behaviorCalled(com.nomagic.uml2.ext.magicdraw.commonbehaviors.mdbasicbehaviors.Behavior behavior, fUML.Semantics.CommonBehaviors.BasicBehaviors.ParameterValueList pvl, fUML.Semantics.Classes.Kernel.Object_ caller, fUML.Semantics.Classes.Kernel.Object_ target, boolean isSynchronous)
Event for behavior called.void
busyStatusChange(fUML.Semantics.Classes.Kernel.StructuredValue context, java.lang.Object oldValue, java.lang.Object newValue)
Event for busy status change.void
configLoaded(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element config, SimulationExecution execution)
Custom additional configuration values can be read here.void
contextInitialized(SimulationExecution execution)
Event fired after context ofexecution
is initialized.void
elementActivated(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, java.util.Collection<?> values)
Event for element activated.void
elementDeactivated(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, java.util.Collection<?> values)
Event for element deactivated.void
eventTriggered(fUML.Semantics.CommonBehaviors.Communications.SignalInstance signal)
Event for signal event triggered.void
executionStarted(SimulationExecution execution)
Event for execution started.void
executionTerminated(SimulationExecution execution)
Event for execution terminated.void
objectCreated(fUML.Semantics.Classes.Kernel.Object_ sender, fUML.Semantics.Classes.Kernel.Object_ object)
Event for object created.void
objectStateActivated(fUML.Semantics.Classes.Kernel.StructuredValue context, com.nomagic.uml2.ext.magicdraw.statemachines.mdbehaviorstatemachines.State newState)
Event when state of runtime object activated.void
operationCalled(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Operation operation, fUML.Semantics.CommonBehaviors.BasicBehaviors.ParameterValueList pvl, fUML.Semantics.Classes.Kernel.Object_ caller, fUML.Semantics.Classes.Kernel.Object_ target, boolean isSynchronous)
Event for operation called.void
valueChange(fUML.Semantics.Classes.Kernel.StructuredValue context, fUML.Semantics.Classes.Kernel.FeatureValue feature, java.lang.Object oldValue, java.lang.Object newValue)
Event for value change.
-
-
-
Method Detail
-
configLoaded
public void configLoaded(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element config, SimulationExecution execution)
Custom additional configuration values can be read here.- Parameters:
config
- the configuration element of the running execution.execution
- simulation execution
-
executionStarted
public void executionStarted(SimulationExecution execution)
Event for execution started.- Parameters:
execution
- the started execution
-
eventTriggered
public void eventTriggered(fUML.Semantics.CommonBehaviors.Communications.SignalInstance signal)
Event for signal event triggered.- Parameters:
signal
- the triggered signal
-
operationCalled
public void operationCalled(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Operation operation, fUML.Semantics.CommonBehaviors.BasicBehaviors.ParameterValueList pvl, fUML.Semantics.Classes.Kernel.Object_ caller, fUML.Semantics.Classes.Kernel.Object_ target, boolean isSynchronous)
Event for operation called.- Parameters:
operation
- the called operationpvl
- parameterscaller
- callertarget
- targetisSynchronous
- isSynchronous
-
behaviorCalled
public void behaviorCalled(com.nomagic.uml2.ext.magicdraw.commonbehaviors.mdbasicbehaviors.Behavior behavior, fUML.Semantics.CommonBehaviors.BasicBehaviors.ParameterValueList pvl, fUML.Semantics.Classes.Kernel.Object_ caller, fUML.Semantics.Classes.Kernel.Object_ target, boolean isSynchronous)
Event for behavior called.- Parameters:
behavior
- the called behaviorpvl
- parameterscaller
- callertarget
- targetisSynchronous
- isSynchronous
-
objectCreated
public void objectCreated(fUML.Semantics.Classes.Kernel.Object_ sender, fUML.Semantics.Classes.Kernel.Object_ object)
Event for object created.- Parameters:
sender
- senderobject
- the createdObject_
-
executionTerminated
public void executionTerminated(SimulationExecution execution)
Event for execution terminated.- Parameters:
execution
- the terminated execution
-
elementActivated
public void elementActivated(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, java.util.Collection<?> values)
Event for element activated.- Parameters:
element
- the activated elementvalues
- values
-
elementDeactivated
public void elementDeactivated(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, java.util.Collection<?> values)
Event for element deactivated.- Parameters:
element
- the deactivated elementvalues
- values
-
valueChange
public void valueChange(fUML.Semantics.Classes.Kernel.StructuredValue context, fUML.Semantics.Classes.Kernel.FeatureValue feature, java.lang.Object oldValue, java.lang.Object newValue)
Event for value change.- Parameters:
context
- the owner of feature.feature
- the FeatureValue that the value was changed.oldValue
- the old value.newValue
- the new value.
-
busyStatusChange
public void busyStatusChange(fUML.Semantics.Classes.Kernel.StructuredValue context, java.lang.Object oldValue, java.lang.Object newValue)
Event for busy status change.- Parameters:
context
- the owner of feature.oldValue
- the old value.newValue
- the new value.
-
objectStateActivated
public void objectStateActivated(fUML.Semantics.Classes.Kernel.StructuredValue context, com.nomagic.uml2.ext.magicdraw.statemachines.mdbehaviorstatemachines.State newState)
Event when state of runtime object activated.- Parameters:
context
- the runtime valuenewState
- the old state
-
beforeObjectDestroyed
public void beforeObjectDestroyed(fUML.Semantics.Classes.Kernel.Object_ object)
Event occurred before object destroyed.- Parameters:
object
- Being destroyed object
-
beforeContextInitialized
public void beforeContextInitialized(SimulationExecution execution)
Event fired before context ofexecution
is initialized.- Parameters:
execution
- Simulation execution
-
contextInitialized
public void contextInitialized(SimulationExecution execution)
Event fired after context ofexecution
is initialized.- Parameters:
execution
- Simulation execution
-
-