Search in sources :

Example 6 with Step

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

the class ExecutionStateImpl 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_STATE__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 7 with Step

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

the class ExecutionStateImpl method basicSetEntryAction.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetEntryAction(Step newEntryAction, NotificationChain msgs) {
    Step oldEntryAction = entryAction;
    entryAction = newEntryAction;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.EXECUTION_STATE__ENTRY_ACTION, oldEntryAction, newEntryAction);
        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 8 with Step

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

the class HistoryEntryImpl method basicSetInitialStep.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetInitialStep(Step newInitialStep, NotificationChain msgs) {
    Step oldInitialStep = initialStep;
    initialStep = newInitialStep;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.HISTORY_ENTRY__INITIAL_STEP, oldInitialStep, newInitialStep);
        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 9 with Step

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

the class IfImpl method basicSetThenStep.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetThenStep(Step newThenStep, NotificationChain msgs) {
    Step oldThenStep = thenStep;
    thenStep = newThenStep;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.IF__THEN_STEP, oldThenStep, newThenStep);
        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 10 with Step

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

the class IfImpl method basicSetElseStep.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetElseStep(Step newElseStep, NotificationChain msgs) {
    Step oldElseStep = elseStep;
    elseStep = newElseStep;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.IF__ELSE_STEP, oldElseStep, newElseStep);
        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