Search in sources :

Example 6 with SubprogramImplementation

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

the class AadlBaTypeChecker method getSubprogramType.

// Recursive method.
private Classifier getSubprogramType(CalledSubprogram sc) {
    Classifier result = null;
    if (sc instanceof SubprogramImplementation) {
        result = ((SubprogramImplementation) sc).getType();
    } else if (sc instanceof SubprogramType) {
        result = (SubprogramType) sc;
    } else if (sc instanceof SubprogramAccess) {
        SubprogramAccess sa = (SubprogramAccess) sc;
        result = sa.getClassifier();
    } else if (sc instanceof SubprogramSubcomponent) {
        SubprogramSubcomponent ss = (SubprogramSubcomponent) sc;
        result = ss.getClassifier();
    }
    return result;
}
Also used : SubprogramSubcomponent(org.osate.aadl2.SubprogramSubcomponent) SubprogramAccess(org.osate.aadl2.SubprogramAccess) SubprogramImplementation(org.osate.aadl2.SubprogramImplementation) SubprogramType(org.osate.aadl2.SubprogramType) Classifier(org.osate.aadl2.Classifier) ComponentClassifier(org.osate.aadl2.ComponentClassifier) DataClassifier(org.osate.aadl2.DataClassifier) ProcessorClassifier(org.osate.aadl2.ProcessorClassifier)

Aggregations

SubprogramImplementation (org.osate.aadl2.SubprogramImplementation)5 SubprogramType (org.osate.aadl2.SubprogramType)5 AbstractImplementation (org.osate.aadl2.AbstractImplementation)4 AbstractType (org.osate.aadl2.AbstractType)4 BusImplementation (org.osate.aadl2.BusImplementation)4 BusType (org.osate.aadl2.BusType)4 DeviceImplementation (org.osate.aadl2.DeviceImplementation)4 DeviceType (org.osate.aadl2.DeviceType)4 MemoryImplementation (org.osate.aadl2.MemoryImplementation)4 MemoryType (org.osate.aadl2.MemoryType)4 ProcessImplementation (org.osate.aadl2.ProcessImplementation)4 ProcessType (org.osate.aadl2.ProcessType)4 ProcessorImplementation (org.osate.aadl2.ProcessorImplementation)4 ProcessorType (org.osate.aadl2.ProcessorType)4 Property (org.osate.aadl2.Property)4 SystemImplementation (org.osate.aadl2.SystemImplementation)4 SystemType (org.osate.aadl2.SystemType)4 ThreadGroupImplementation (org.osate.aadl2.ThreadGroupImplementation)4 ThreadGroupType (org.osate.aadl2.ThreadGroupType)4 ThreadImplementation (org.osate.aadl2.ThreadImplementation)4