Search in sources :

Example 31 with Reaction

use of org.yakindu.sct.model.sexec.Reaction in project statecharts by Yakindu.

the class TraceReactionWillFireImpl method setReaction.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setReaction(Reaction newReaction) {
    Reaction oldReaction = reaction;
    reaction = newReaction;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SexecPackage.TRACE_REACTION_WILL_FIRE__REACTION, oldReaction, reaction));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Reaction(org.yakindu.sct.model.sexec.Reaction)

Aggregations

Reaction (org.yakindu.sct.model.sexec.Reaction)31 Test (org.junit.Test)29 ExecutionFlow (org.yakindu.sct.model.sexec.ExecutionFlow)26 ExecutionState (org.yakindu.sct.model.sexec.ExecutionState)26 Statechart (org.yakindu.sct.model.sgraph.Statechart)25 SGraphTestFactory._createStatechart (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createStatechart)25 Sequence (org.yakindu.sct.model.sexec.Sequence)24 Region (org.yakindu.sct.model.sgraph.Region)22 SGraphTestFactory._createRegion (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createRegion)22 VariableDefinition (org.yakindu.sct.model.stext.stext.VariableDefinition)22 StextTestFactory._createVariableDefinition (org.yakindu.sct.model.stext.test.util.StextTestFactory._createVariableDefinition)22 State (org.yakindu.sct.model.sgraph.State)19 SGraphTestFactory._createState (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createState)19 StextTestFactory._createInterfaceScope (org.yakindu.sct.model.stext.test.util.StextTestFactory._createInterfaceScope)18 InterfaceScope (org.yakindu.sct.model.stext.stext.InterfaceScope)17 SCTTestUtil.findState (org.yakindu.sct.model.sexec.transformation.test.SCTTestUtil.findState)15 Entry (org.yakindu.sct.model.sgraph.Entry)10 SGraphTestFactory._createEntry (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createEntry)10 LocalReaction (org.yakindu.sct.model.stext.stext.LocalReaction)9 StextTestFactory._createLocalReaction (org.yakindu.sct.model.stext.test.util.StextTestFactory._createLocalReaction)9