You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Property associations for behavior variables are not supported #2190
In BA, property associations can be attached to behavior variables. This is particularly useful for variables initialization, as mentioned in issue #2184
Steps to Reproduce
The following model is not parsed correctly by the BA plugin
package issue2184_InitialValue
public
with Base_Types;
with Data_Model;
process top
features
o1: out data port Base_Types::Integer_32;
annex behavior_specification {**
variables
tmp : Base_Types::Integer_32 {Data_Model::Initial_Value => ("1");};
states
a : initial final state;
transitions
t : a -[]-> a {
o1 := tmp
};
**};
end top;
end issue2184_InitialValue;
@lwrage I have to parse property associations with records. Is there a utility function to retreive the property object of the record from its name and the property it is associated with?
For example, I have a property association my_prop => [f1=>1;]; how to retrieve "f1" from its name (a String) and the object corresponding to my_prop?
@lwrage I found how to do it just by getting the property type of my_prop, casting the type into a RecordTye and then taking the content. I don't think we need a utility function for this.
Activity
rename tests as they actually match issue #2190 and not #2184
Etienne13 commentedon Feb 6, 2020
@lwrage I have to parse property associations with records. Is there a utility function to retreive the property object of the record from its name and the property it is associated with?
For example, I have a property association my_prop => [f1=>1;]; how to retrieve "f1" from its name (a String) and the object corresponding to my_prop?
Etienne13 commentedon Feb 7, 2020
@lwrage I found how to do it just by getting the property type of my_prop, casting the type into a RecordTye and then taking the content. I don't think we need a utility function for this.