osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
39 stars 8 forks source link

OSATE doesn't reject connection arrays in property associations #1746

Closed lwrage closed 5 years ago

lwrage commented 5 years ago

Summary

OSATE allows an index when associating properties with a connection even though AADL doesn't have connection arrays.

Expected and Current Behavior

AADL code like the following should be marked with an error in the editor.

Actual_Connection_Binding => (reference (b1[1])) applies to conn1[1];

Steps to Reproduce

Example model:

package pkg
public
    abstract aType
        features
            da: requires data access;
    end aType;

    system s
    end s;

    system implementation s.i
        subcomponents
            d: data[2];
            a: abstract aType[2];
            b1: bus[2];

        connections
            conn1: data access d <-> a.da {connection_pattern => ((one_to_one));} ;

        properties
            Actual_Connection_Binding => (reference (b1[1])) applies to conn1[1];
            Actual_Connection_Binding => (reference (b1[2])) applies to conn1[2];
    end s.i;
end pkg;

Environment

lwrage commented 5 years ago

Need to check what happens for reference(conn[1]), which should also be rejected.