You can use the following API to get a tag value:
object getTagValue(Object_ object, String tagName) throws Exception
If the RuntimeObject is omitted, $context$ or self will be used as an object. The context object in the parametric is the constraint block object that owns the constraint, not the actual context of the diagram. The following example shows how to get a tag value without specifying a RuntimeObject in ALH API:
object getTagValue(String tagName) throws Exception
The following code fragment shows how to get tag values, e.g., max, through ALH API. See also Value access and references by tags.
ALH.getTagValue(d, “uniform.max”); // 10
Information
Alternatively, you can use ALH API through the fUML object syntax, with object.getTagValue(tagName). For example:
- d.getTagValue(“uniform.max”); // 10