use of org.yakindu.sct.model.sexec.Step in project statecharts by Yakindu.
the class Assert method assertedOrder_intern.
private static void assertedOrder_intern(Step step, Collection<? extends ExecutionState> currentStates, List<? extends AbstractStep> requiredSteps) {
if (requiredSteps.isEmpty()) {
return;
}
boolean found = false;
Iterable<Step> next = null;
if (requiredSteps.get(0).matches(step)) {
found = true;
AbstractStep matched = requiredSteps.remove(0);
if (matched.isLeaf()) {
return;
}
next = matched.next();
}
if (next == null) {
next = findNext(step, currentStates, requiredSteps);
}
if (next != null) {
for (Step s : next) {
assertedOrder_intern(s, currentStates, requiredSteps);
}
} else if (found == false) {
fail("Step without match: " + step);
}
}
use of org.yakindu.sct.model.sexec.Step in project statecharts by Yakindu.
the class HistoryEntryImpl method basicSetHistoryStep.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetHistoryStep(Step newHistoryStep, NotificationChain msgs) {
Step oldHistoryStep = historyStep;
historyStep = newHistoryStep;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.HISTORY_ENTRY__HISTORY_STEP, oldHistoryStep, newHistoryStep);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.yakindu.sct.model.sexec.Step in project statecharts by Yakindu.
the class ReactionImpl method basicSetEffect.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetEffect(Step newEffect, NotificationChain msgs) {
Step oldEffect = effect;
effect = newEffect;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.REACTION__EFFECT, oldEffect, newEffect);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.yakindu.sct.model.sexec.Step in project statecharts by Yakindu.
the class StateCaseImpl 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.STATE_CASE__STEP, oldStep, newStep);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.yakindu.sct.model.sexec.Step in project statecharts by Yakindu.
the class ExecutionFlowImpl 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_FLOW__ENTRY_ACTION, oldEntryAction, newEntryAction);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations