Search in sources :

Example 26 with Step

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

the class ExecutionFlowImpl method basicSetExitAction.

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

Example 27 with Step

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

the class CallImpl method basicSetStep.

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

Aggregations

Step (org.yakindu.sct.model.sexec.Step)27 Test (org.junit.Test)15 ExecutionFlow (org.yakindu.sct.model.sexec.ExecutionFlow)15 ExecutionState (org.yakindu.sct.model.sexec.ExecutionState)13 Region (org.yakindu.sct.model.sgraph.Region)12 State (org.yakindu.sct.model.sgraph.State)12 Statechart (org.yakindu.sct.model.sgraph.Statechart)12 SGraphTestFactory._createRegion (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createRegion)12 SGraphTestFactory._createState (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createState)12 SGraphTestFactory._createStatechart (org.yakindu.sct.model.sgraph.test.util.SGraphTestFactory._createStatechart)12 VariableDefinition (org.yakindu.sct.model.stext.stext.VariableDefinition)12 StextTestFactory._createVariableDefinition (org.yakindu.sct.model.stext.test.util.StextTestFactory._createVariableDefinition)12 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)11 InterfaceScope (org.yakindu.sct.model.stext.stext.InterfaceScope)11 StextTestFactory._createInterfaceScope (org.yakindu.sct.model.stext.test.util.StextTestFactory._createInterfaceScope)11 Sequence (org.yakindu.sct.model.sexec.Sequence)10 If (org.yakindu.sct.model.sexec.If)8 ReactionTrigger (org.yakindu.sct.model.stext.stext.ReactionTrigger)7 Entry (org.yakindu.sct.model.sgraph.Entry)6 Transition (org.yakindu.sct.model.sgraph.Transition)6