functiongetElementModifierValue
Returns the binding equation for an element.
Information
Returns the modifier value (only the binding excluding submodifiers) of an element (component or short class).
Example:
model A
B b1(a1(p1=5,p2=4));
model X = Y(a1(p1=5,p2=4));
end A;
getElementModifierValue(A,b1.a1.p1) => 5
getElementModifierValue(A,b1.a1.p2) => 4
getElementModifierValue(A,X.a1.p1) => 5
getElementModifierValue(A,X.a1.p2) => 4
See also getElementModifierValues().
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| TypeName | className | ||
| TypeName | modifier |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | value |