Search in sources :

Example 81 with Classifier

use of org.geotoolkit.sml.xml.v100.Classifier in project osate2 by osate.

the class ClassifierFeatureImpl method getFeaturingClassifiers.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public EList<Classifier> getFeaturingClassifiers() {
    // DB This should be an EStructuralFeature.Setting
    // final EList<Classifier> list = new BasicEList<Classifier>();
    final EList<Classifier> list = new NonNotifyingEObjectEList<Classifier>(Classifier.class, this, Aadl2Package.CLASSIFIER_FEATURE__FEATURING_CLASSIFIER);
    final Classifier contClassifier = getContainingClassifier();
    if (contClassifier != null) {
        list.add(contClassifier);
    }
    return list;
}
Also used : NonNotifyingEObjectEList(org.osate.aadl2.util.NonNotifyingEObjectEList) Classifier(org.osate.aadl2.Classifier)

Example 82 with Classifier

use of org.geotoolkit.sml.xml.v100.Classifier in project osate2 by osate.

the class ClassifierImpl method getInheritedMembers.

protected EList<NamedElement> getInheritedMembers(EList<NamedElement> tmp, EList<NamedElement> cls) {
    // DONE: implemented get inherited members
    for (Generalization g : getGeneralizations()) {
        Classifier cl = g.getGeneral();
        if (!Aadl2Util.isNull(cl) && !cls.contains(cl)) {
            tmp.addAll(cl.getOwnedMembers());
            cls.add(cl);
            ((ClassifierImpl) cl).getInheritedMembers(tmp, cls);
            cls.remove(cl);
        }
    }
    return tmp;
}
Also used : Classifier(org.osate.aadl2.Classifier) Generalization(org.osate.aadl2.Generalization)

Example 83 with Classifier

use of org.geotoolkit.sml.xml.v100.Classifier in project osate2 by osate.

the class ClassifierImpl method getAllPropertyAssociations.

// XXX: [AADL 1 -> AADL 2] Added to make instantiation work.
public EList<PropertyAssociation> getAllPropertyAssociations() {
    final EList<PropertyAssociation> result = new BasicEList<PropertyAssociation>();
    final EList<Classifier> classifiers = getSelfPlusAllExtended();
    for (final ListIterator<Classifier> i = classifiers.listIterator(classifiers.size()); i.hasPrevious(); ) {
        final Classifier current = i.previous();
        result.addAll(current.getOwnedPropertyAssociations());
    }
    return result;
}
Also used : PropertyAssociation(org.osate.aadl2.PropertyAssociation) BasicEList(org.eclipse.emf.common.util.BasicEList) Classifier(org.osate.aadl2.Classifier)

Example 84 with Classifier

use of org.geotoolkit.sml.xml.v100.Classifier in project osate2 by osate.

the class ConnectionImpl method getFeaturingClassifiers.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public EList<Classifier> getFeaturingClassifiers() {
    // DB This should be an EStructuralFeature.Setting
    final EList<Classifier> list = new NonNotifyingEObjectEList<Classifier>(Classifier.class, this, Aadl2Package.CONNECTION__FEATURING_CLASSIFIER);
    // BasicEList<Classifier> list = new BasicEList<Classifier>();
    final Classifier classifier = getContainingClassifier();
    // DB the list does not allow null values.
    if (classifier != null) {
        list.add(classifier);
    }
    return list;
}
Also used : NonNotifyingEObjectEList(org.osate.aadl2.util.NonNotifyingEObjectEList) Classifier(org.osate.aadl2.Classifier)

Example 85 with Classifier

use of org.geotoolkit.sml.xml.v100.Classifier in project osate2 by osate.

the class BehavioredImplementationImpl method getAllSubprogramCallSequences.

public EList<SubprogramCallSequence> getAllSubprogramCallSequences() {
    EList<Classifier> ancestors = getSelfPlusAllExtended();
    final BasicEList<SubprogramCallSequence> returnlist = new BasicEList<SubprogramCallSequence>();
    for (Iterator<Classifier> it = ancestors.iterator(); it.hasNext(); ) {
        final BehavioredImplementation current = (BehavioredImplementation) it.next();
        returnlist.addAll(current.getOwnedSubprogramCallSequences());
    }
    return returnlist;
}
Also used : BehavioredImplementation(org.osate.aadl2.BehavioredImplementation) SubprogramCallSequence(org.osate.aadl2.SubprogramCallSequence) BasicEList(org.eclipse.emf.common.util.BasicEList) Classifier(org.osate.aadl2.Classifier)

Aggregations

Classifier (org.osate.aadl2.Classifier)203 ComponentClassifier (org.osate.aadl2.ComponentClassifier)90 ComponentImplementation (org.osate.aadl2.ComponentImplementation)49 NamedElement (org.osate.aadl2.NamedElement)40 AadlPackage (org.osate.aadl2.AadlPackage)38 Subcomponent (org.osate.aadl2.Subcomponent)37 ComponentType (org.osate.aadl2.ComponentType)34 EObject (org.eclipse.emf.ecore.EObject)31 ArrayList (java.util.ArrayList)29 BasicEList (org.eclipse.emf.common.util.BasicEList)28 Feature (org.osate.aadl2.Feature)26 DataClassifier (org.osate.aadl2.DataClassifier)22 FeatureGroupType (org.osate.aadl2.FeatureGroupType)21 ProcessorClassifier (org.osate.aadl2.ProcessorClassifier)21 AnnexSubclause (org.osate.aadl2.AnnexSubclause)17 Element (org.osate.aadl2.Element)17 EList (org.eclipse.emf.common.util.EList)15 ComponentInstance (org.osate.aadl2.instance.ComponentInstance)15 FeatureGroup (org.osate.aadl2.FeatureGroup)14 PropertyExpression (org.osate.aadl2.PropertyExpression)14