Search in sources :

Example 1 with TypeSet

use of org.osate.xtext.aadl2.errormodel.errorModel.TypeSet in project osate2 by osate.

the class ErrorPathImpl method basicSetTargetToken.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTargetToken(TypeSet newTargetToken, NotificationChain msgs) {
    TypeSet oldTargetToken = targetToken;
    targetToken = newTargetToken;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ErrorModelPackage.ERROR_PATH__TARGET_TOKEN, oldTargetToken, newTargetToken);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) TypeSet(org.osate.xtext.aadl2.errormodel.errorModel.TypeSet)

Example 2 with TypeSet

use of org.osate.xtext.aadl2.errormodel.errorModel.TypeSet in project osate2 by osate.

the class ErrorPropagationImpl method basicSetTypeSet.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTypeSet(TypeSet newTypeSet, NotificationChain msgs) {
    TypeSet oldTypeSet = typeSet;
    typeSet = newTypeSet;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ErrorModelPackage.ERROR_PROPAGATION__TYPE_SET, oldTypeSet, newTypeSet);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) TypeSet(org.osate.xtext.aadl2.errormodel.errorModel.TypeSet)

Example 3 with TypeSet

use of org.osate.xtext.aadl2.errormodel.errorModel.TypeSet in project osate2 by osate.

the class ErrorSourceImpl method basicSetFailureModeType.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetFailureModeType(TypeSet newFailureModeType, NotificationChain msgs) {
    TypeSet oldFailureModeType = failureModeType;
    failureModeType = newFailureModeType;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ErrorModelPackage.ERROR_SOURCE__FAILURE_MODE_TYPE, oldFailureModeType, newFailureModeType);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) TypeSet(org.osate.xtext.aadl2.errormodel.errorModel.TypeSet)

Example 4 with TypeSet

use of org.osate.xtext.aadl2.errormodel.errorModel.TypeSet in project osate2 by osate.

the class ErrorBehaviorStateImpl method basicSetTypeSet.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTypeSet(TypeSet newTypeSet, NotificationChain msgs) {
    TypeSet oldTypeSet = typeSet;
    typeSet = newTypeSet;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ErrorModelPackage.ERROR_BEHAVIOR_STATE__TYPE_SET, oldTypeSet, newTypeSet);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) TypeSet(org.osate.xtext.aadl2.errormodel.errorModel.TypeSet)

Example 5 with TypeSet

use of org.osate.xtext.aadl2.errormodel.errorModel.TypeSet in project osate2 by osate.

the class ErrorDetectionImpl method basicSetTypeTokenConstraint.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTypeTokenConstraint(TypeSet newTypeTokenConstraint, NotificationChain msgs) {
    TypeSet oldTypeTokenConstraint = typeTokenConstraint;
    typeTokenConstraint = newTypeTokenConstraint;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ErrorModelPackage.ERROR_DETECTION__TYPE_TOKEN_CONSTRAINT, oldTypeTokenConstraint, newTypeTokenConstraint);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) TypeSet(org.osate.xtext.aadl2.errormodel.errorModel.TypeSet)

Aggregations

TypeSet (org.osate.xtext.aadl2.errormodel.errorModel.TypeSet)64 TypeToken (org.osate.xtext.aadl2.errormodel.errorModel.TypeToken)29 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)21 ErrorPropagation (org.osate.xtext.aadl2.errormodel.errorModel.ErrorPropagation)20 ErrorBehaviorState (org.osate.xtext.aadl2.errormodel.errorModel.ErrorBehaviorState)19 ErrorType (org.osate.xtext.aadl2.errormodel.errorModel.ErrorType)12 ErrorEvent (org.osate.xtext.aadl2.errormodel.errorModel.ErrorEvent)10 EObject (org.eclipse.emf.ecore.EObject)9 NamedElement (org.osate.aadl2.NamedElement)9 BasicEList (org.eclipse.emf.common.util.BasicEList)8 ComponentInstance (org.osate.aadl2.instance.ComponentInstance)7 ConditionElement (org.osate.xtext.aadl2.errormodel.errorModel.ConditionElement)7 EMV2PropertyAssociation (org.osate.xtext.aadl2.errormodel.errorModel.EMV2PropertyAssociation)7 ErrorSource (org.osate.xtext.aadl2.errormodel.errorModel.ErrorSource)7 ErrorTypes (org.osate.xtext.aadl2.errormodel.errorModel.ErrorTypes)6 EventOrPropagation (org.osate.xtext.aadl2.errormodel.errorModel.EventOrPropagation)5 LinkedList (java.util.LinkedList)4 EList (org.eclipse.emf.common.util.EList)4 ErrorBehaviorTransition (org.osate.xtext.aadl2.errormodel.errorModel.ErrorBehaviorTransition)4 ErrorModelSubclause (org.osate.xtext.aadl2.errormodel.errorModel.ErrorModelSubclause)4