Interface attributes on function types get not inherited by their instances
Hi all,
We are having this issue about interface attributes on instance functions (i.e. Functions that are instances of Function Types).
In our case I explain below, the instance Functions do not inherit all the interface attributes we set on the corresponding Function Types.
In particular, we added two boolean attributes on PI/RI interfaces of kind Unprotected to be set on the interfaces via Right-Click -> Properties:
- is_alarm, and
- is_observable (we added these attributes in this file: default_attributes.xml)
Here's a screenshot on how we set these attributes in the Function Type:
The problem is: when we set these interface attributes on the Function Type named "ComponentType" as you can see in the screenshot, these get not inherited by the corresponding instance Function named "Instance".
Here's a zipped TASTE project folder named "attributes" with the minimal example shown above: attributes.zip
As a final note, I report we had a related issue on another TASTE model (which unfortunately is too complex to be shared here at the moment). In this last case, the attributes got instead inherited correctly by the instances and set correctly in the interfaceview.xml file. However, in the resulting InterfaceView.aadl, the instance functions had these attributes (is_alarm and is_observables) always set to "false" even though in the interfaceview.xml they were set to "true".