Search in sources :

Example 1 with DispatchTriggerCondition

use of org.osate.ba.aadlba.DispatchTriggerCondition in project osate2 by osate.

the class DispatchConditionImpl method basicSetDispatchTriggerCondition.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetDispatchTriggerCondition(DispatchTriggerCondition newDispatchTriggerCondition, NotificationChain msgs) {
    DispatchTriggerCondition oldDispatchTriggerCondition = dispatchTriggerCondition;
    dispatchTriggerCondition = newDispatchTriggerCondition;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AadlBaPackage.DISPATCH_CONDITION__DISPATCH_TRIGGER_CONDITION, oldDispatchTriggerCondition, newDispatchTriggerCondition);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : DispatchTriggerCondition(org.osate.ba.aadlba.DispatchTriggerCondition) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 2 with DispatchTriggerCondition

use of org.osate.ba.aadlba.DispatchTriggerCondition in project osate2 by osate.

the class AadlBaNameResolver method dispatchConditionResolver.

/*
	 * dispatch_condition ::=
	 * on dispatch [ dispatch_trigger_condition ] [ frozen frozen_ports ]
	 */
private boolean dispatchConditionResolver(DispatchCondition cond) {
    boolean result = true;
    DispatchTriggerCondition dtc = cond.getDispatchTriggerCondition();
    // Dtc can be null as no dispatch trigger condition means always true.
    if (dtc != null) {
        result = dispatchTriggerConditionResolver(dtc);
    }
    if (cond.isSetFrozenPorts()) {
        for (Element id : cond.getFrozenPorts()) {
            result &= refResolver((Reference) id);
        }
    }
    return result;
}
Also used : DispatchTriggerCondition(org.osate.ba.aadlba.DispatchTriggerCondition) DeclarativePropertyReference(org.osate.ba.declarative.DeclarativePropertyReference) Reference(org.osate.ba.declarative.Reference) ContainmentPathElement(org.osate.aadl2.ContainmentPathElement) QualifiedNamedElement(org.osate.ba.declarative.QualifiedNamedElement) DeclarativeBehaviorElement(org.osate.ba.declarative.DeclarativeBehaviorElement) NamedElement(org.osate.aadl2.NamedElement) Element(org.osate.aadl2.Element) BehaviorElement(org.osate.ba.aadlba.BehaviorElement)

Aggregations

DispatchTriggerCondition (org.osate.ba.aadlba.DispatchTriggerCondition)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 ContainmentPathElement (org.osate.aadl2.ContainmentPathElement)1 Element (org.osate.aadl2.Element)1 NamedElement (org.osate.aadl2.NamedElement)1 BehaviorElement (org.osate.ba.aadlba.BehaviorElement)1 DeclarativeBehaviorElement (org.osate.ba.declarative.DeclarativeBehaviorElement)1 DeclarativePropertyReference (org.osate.ba.declarative.DeclarativePropertyReference)1 QualifiedNamedElement (org.osate.ba.declarative.QualifiedNamedElement)1 Reference (org.osate.ba.declarative.Reference)1