use of org.osate.xtext.aadl2.errormodel.errorModel.ConditionExpression in project osate2 by osate.
the class ErrorBehaviorTransitionImpl method basicSetCondition.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCondition(ConditionExpression newCondition, NotificationChain msgs) {
ConditionExpression oldCondition = condition;
condition = newCondition;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ErrorModelPackage.ERROR_BEHAVIOR_TRANSITION__CONDITION, oldCondition, newCondition);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.osate.xtext.aadl2.errormodel.errorModel.ConditionExpression in project osate2 by osate.
the class CompositeStateImpl method basicSetCondition.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCondition(ConditionExpression newCondition, NotificationChain msgs) {
ConditionExpression oldCondition = condition;
condition = newCondition;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ErrorModelPackage.COMPOSITE_STATE__CONDITION, oldCondition, newCondition);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.osate.xtext.aadl2.errormodel.errorModel.ConditionExpression in project osate2 by osate.
the class ErrorDetectionImpl method basicSetCondition.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCondition(ConditionExpression newCondition, NotificationChain msgs) {
ConditionExpression oldCondition = condition;
condition = newCondition;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ErrorModelPackage.ERROR_DETECTION__CONDITION, oldCondition, newCondition);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.osate.xtext.aadl2.errormodel.errorModel.ConditionExpression in project osate2 by osate.
the class OutgoingPropagationConditionImpl method basicSetCondition.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCondition(ConditionExpression newCondition, NotificationChain msgs) {
ConditionExpression oldCondition = condition;
condition = newCondition;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ErrorModelPackage.OUTGOING_PROPAGATION_CONDITION__CONDITION, oldCondition, newCondition);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.osate.xtext.aadl2.errormodel.errorModel.ConditionExpression in project osate2 by osate.
the class EMV2Util method getAllConditionElementsFromConditionExpression.
private static void getAllConditionElementsFromConditionExpression(EList<ConditionElement> propagations, ConditionExpression ce) {
if (ce instanceof ConditionElement) {
ConditionElement element = (ConditionElement) ce;
propagations.add(element);
} else if (ce instanceof AndExpression) {
AndExpression and = (AndExpression) ce;
for (ConditionExpression foobar : and.getOperands()) {
getAllConditionElementsFromConditionExpression(propagations, foobar);
}
} else if (ce instanceof OrExpression) {
OrExpression or = (OrExpression) ce;
for (ConditionExpression foobar : or.getOperands()) {
getAllConditionElementsFromConditionExpression(propagations, foobar);
}
} else if (ce instanceof OrmoreExpression) {
OrmoreExpression or = (OrmoreExpression) ce;
for (ConditionExpression foobar : or.getOperands()) {
getAllConditionElementsFromConditionExpression(propagations, foobar);
}
} else if (ce instanceof OrlessExpression) {
OrlessExpression or = (OrlessExpression) ce;
for (ConditionExpression foobar : or.getOperands()) {
getAllConditionElementsFromConditionExpression(propagations, foobar);
}
} else if (ce instanceof AllExpression) {
AllExpression or = (AllExpression) ce;
for (ConditionExpression foobar : or.getOperands()) {
getAllConditionElementsFromConditionExpression(propagations, foobar);
}
}
}
Aggregations