Search in sources :

Example 11 with FlowEnd

use of org.osate.aadl2.FlowEnd in project osate2 by osate.

the class AadlUtil method getFlowEndName.

public static String getFlowEndName(FlowEnd end) {
    Context cxt = end.getContext();
    Feature cend = end.getFeature();
    if (cxt != null) {
        return cxt.getName() + '.' + cend.getName();
    } else {
        return cend.getName();
    }
}
Also used : Context(org.osate.aadl2.Context) Feature(org.osate.aadl2.Feature) AbstractFeature(org.osate.aadl2.AbstractFeature)

Example 12 with FlowEnd

use of org.osate.aadl2.FlowEnd in project osate2 by osate.

the class FlowSpecificationImpl method getAllInEnd.

public FlowEnd getAllInEnd() {
    FlowEnd res = getInEnd();
    FlowSpecification fs = this;
    while (res == null && fs.getRefined() != null) {
        fs = fs.getRefined();
        res = fs.getInEnd();
    }
    return res;
}
Also used : FlowSpecification(org.osate.aadl2.FlowSpecification) FlowEnd(org.osate.aadl2.FlowEnd)

Example 13 with FlowEnd

use of org.osate.aadl2.FlowEnd in project osate2 by osate.

the class FlowSpecificationImpl method basicSetOutEnd.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetOutEnd(FlowEnd newOutEnd, NotificationChain msgs) {
    FlowEnd oldOutEnd = outEnd;
    outEnd = newOutEnd;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Aadl2Package.FLOW_SPECIFICATION__OUT_END, oldOutEnd, newOutEnd);
        if (msgs == null) {
            msgs = notification;
        } else {
            msgs.add(notification);
        }
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) FlowEnd(org.osate.aadl2.FlowEnd)

Example 14 with FlowEnd

use of org.osate.aadl2.FlowEnd in project osate2 by osate.

the class FlowSpecificationImpl method createOutEnd.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public FlowEnd createOutEnd() {
    FlowEnd newOutEnd = (FlowEnd) create(Aadl2Package.eINSTANCE.getFlowEnd());
    setOutEnd(newOutEnd);
    return newOutEnd;
}
Also used : FlowEnd(org.osate.aadl2.FlowEnd)

Example 15 with FlowEnd

use of org.osate.aadl2.FlowEnd in project osate2 by osate.

the class FlowImplementationImpl method createOutEnd.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public FlowEnd createOutEnd() {
    FlowEnd newOutEnd = (FlowEnd) create(Aadl2Package.eINSTANCE.getFlowEnd());
    setOutEnd(newOutEnd);
    return newOutEnd;
}
Also used : FlowEnd(org.osate.aadl2.FlowEnd)

Aggregations

FlowEnd (org.osate.aadl2.FlowEnd)19 Feature (org.osate.aadl2.Feature)8 FlowSpecification (org.osate.aadl2.FlowSpecification)8 Context (org.osate.aadl2.Context)5 FeatureGroup (org.osate.aadl2.FeatureGroup)5 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)4 Mode (org.osate.aadl2.Mode)4 FlowSpecificationInstance (org.osate.aadl2.instance.FlowSpecificationInstance)4 List (java.util.List)3 Optional (java.util.Optional)2 AadlPackage (org.osate.aadl2.AadlPackage)2 AbstractFeature (org.osate.aadl2.AbstractFeature)2 AbstractSubcomponent (org.osate.aadl2.AbstractSubcomponent)2 Element (org.osate.aadl2.Element)2 ModeTransition (org.osate.aadl2.ModeTransition)2 NamedElement (org.osate.aadl2.NamedElement)2 Subcomponent (org.osate.aadl2.Subcomponent)2 FeatureInstance (org.osate.aadl2.instance.FeatureInstance)2 BusinessObjectContext (org.osate.ge.BusinessObjectContext)2 Predicates (com.google.common.base.Predicates)1