Get value of a property from an element instance
Assume that a
MechComponent stereotype is attached to the
specification of the instance.
weightValue = getValue(instance,'MechComponent.weight');
instance— The element instance
This function is part of the instance API that you can use to analyze the model
iteratively, element by element.
instance refers to the element
instance on which the iteration is being performed.
property— The property field
String in the form
value— Property value
Value of the property. The data type depends on how the property is defined in the profile.
unit— Property unit
String that describe the unit of the property as defined in the profile.