Search in sources :

Example 61 with Sequence

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

the class ExecutionNodeImpl method basicSetReactSequence.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetReactSequence(Sequence newReactSequence, NotificationChain msgs) {
    Sequence oldReactSequence = reactSequence;
    reactSequence = newReactSequence;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.EXECUTION_NODE__REACT_SEQUENCE, oldReactSequence, newReactSequence);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Sequence(org.yakindu.sct.model.sexec.Sequence)

Example 62 with Sequence

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

the class ExecutionRegionImpl method basicSetDeepEnterSequence.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetDeepEnterSequence(Sequence newDeepEnterSequence, NotificationChain msgs) {
    Sequence oldDeepEnterSequence = deepEnterSequence;
    deepEnterSequence = newDeepEnterSequence;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.EXECUTION_REGION__DEEP_ENTER_SEQUENCE, oldDeepEnterSequence, newDeepEnterSequence);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Sequence(org.yakindu.sct.model.sexec.Sequence)

Example 63 with Sequence

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

the class ExecutionRegionImpl method basicSetShallowEnterSequence.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetShallowEnterSequence(Sequence newShallowEnterSequence, NotificationChain msgs) {
    Sequence oldShallowEnterSequence = shallowEnterSequence;
    shallowEnterSequence = newShallowEnterSequence;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.EXECUTION_REGION__SHALLOW_ENTER_SEQUENCE, oldShallowEnterSequence, newShallowEnterSequence);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Sequence(org.yakindu.sct.model.sexec.Sequence)

Aggregations

Sequence (org.yakindu.sct.model.sexec.Sequence)63 Test (org.junit.Test)49 ExecutionFlow (org.yakindu.sct.model.sexec.ExecutionFlow)49 ExecutionState (org.yakindu.sct.model.sexec.ExecutionState)45 VariableDefinition (org.yakindu.sct.model.stext.stext.VariableDefinition)41 StextTestFactory._createVariableDefinition (org.yakindu.sct.model.stext.test.util.StextTestFactory._createVariableDefinition)41 Statechart (org.yakindu.sct.model.sgraph.Statechart)40 SGraphTestFactory._createStatechart (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createStatechart)40 Region (org.yakindu.sct.model.sgraph.Region)36 State (org.yakindu.sct.model.sgraph.State)36 SGraphTestFactory._createRegion (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createRegion)36 SGraphTestFactory._createState (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createState)36 StextTestFactory._createInterfaceScope (org.yakindu.sct.model.stext.test.util.StextTestFactory._createInterfaceScope)34 InterfaceScope (org.yakindu.sct.model.stext.stext.InterfaceScope)28 Reaction (org.yakindu.sct.model.sexec.Reaction)24 SCTTestUtil.findState (org.yakindu.sct.model.sexec.transformation.test.SCTTestUtil.findState)22 Entry (org.yakindu.sct.model.sgraph.Entry)22 SGraphTestFactory._createEntry (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createEntry)22 LocalReaction (org.yakindu.sct.model.stext.stext.LocalReaction)15 StextTestFactory._createLocalReaction (org.yakindu.sct.model.stext.test.util.StextTestFactory._createLocalReaction)15