Search in sources :

Example 1 with Sequence

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

the class ExecutionFlowImpl 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_FLOW__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 2 with Sequence

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

the class ExecutionFlowImpl method basicSetExitSequence.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetExitSequence(Sequence newExitSequence, NotificationChain msgs) {
    Sequence oldExitSequence = exitSequence;
    exitSequence = newExitSequence;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.EXECUTION_FLOW__EXIT_SEQUENCE, oldExitSequence, newExitSequence);
        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 3 with Sequence

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

the class ExecutionFlowImpl method basicSetInitSequence.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetInitSequence(Sequence newInitSequence, NotificationChain msgs) {
    Sequence oldInitSequence = initSequence;
    initSequence = newInitSequence;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.EXECUTION_FLOW__INIT_SEQUENCE, oldInitSequence, newInitSequence);
        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 4 with Sequence

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

the class ExecutionFlowImpl method basicSetLocalReactSequence.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetLocalReactSequence(Sequence newLocalReactSequence, NotificationChain msgs) {
    Sequence oldLocalReactSequence = localReactSequence;
    localReactSequence = newLocalReactSequence;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.EXECUTION_FLOW__LOCAL_REACT_SEQUENCE, oldLocalReactSequence, newLocalReactSequence);
        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 5 with Sequence

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

the class ExecutionFlowImpl method basicSetStaticInitSequence.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetStaticInitSequence(Sequence newStaticInitSequence, NotificationChain msgs) {
    Sequence oldStaticInitSequence = staticInitSequence;
    staticInitSequence = newStaticInitSequence;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.EXECUTION_FLOW__STATIC_INIT_SEQUENCE, oldStaticInitSequence, newStaticInitSequence);
        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