Search in sources :

Example 6 with FeatureClassifier

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

the class SetFeatureClassifierPropertySection method getAllFeatureClassifier.

private static EObject getAllFeatureClassifier(Feature feature) {
    if (feature instanceof FeatureGroup) {
        final FeatureGroup fg = (FeatureGroup) feature;
        return fg.getAllClassifier();
    }
    FeatureClassifier result;
    do {
        result = feature.getFeatureClassifier();
        feature = feature.getRefined();
    } while (feature != null && result == null);
    return result;
}
Also used : FeatureGroup(org.osate.aadl2.FeatureGroup) AbstractFeatureClassifier(org.osate.aadl2.AbstractFeatureClassifier) BusFeatureClassifier(org.osate.aadl2.BusFeatureClassifier) FeatureClassifier(org.osate.aadl2.FeatureClassifier)

Aggregations

Classifier (org.osate.aadl2.Classifier)3 ComponentClassifier (org.osate.aadl2.ComponentClassifier)3 Feature (org.osate.aadl2.Feature)3 FeatureGroup (org.osate.aadl2.FeatureGroup)3 FeatureGroupType (org.osate.aadl2.FeatureGroupType)3 CallContext (org.osate.aadl2.CallContext)2 ComponentPrototype (org.osate.aadl2.ComponentPrototype)2 ComponentPrototypeActual (org.osate.aadl2.ComponentPrototypeActual)2 ComponentType (org.osate.aadl2.ComponentType)2 DataPrototype (org.osate.aadl2.DataPrototype)2 FeatureClassifier (org.osate.aadl2.FeatureClassifier)2 NamedElement (org.osate.aadl2.NamedElement)2 Subcomponent (org.osate.aadl2.Subcomponent)2 SubprogramCall (org.osate.aadl2.SubprogramCall)2 SubprogramGroupAccess (org.osate.aadl2.SubprogramGroupAccess)2 SubprogramGroupSubcomponent (org.osate.aadl2.SubprogramGroupSubcomponent)2 EClass (org.eclipse.emf.ecore.EClass)1 EObject (org.eclipse.emf.ecore.EObject)1 EOperation (org.eclipse.emf.ecore.EOperation)1 Label (org.eclipse.swt.widgets.Label)1