Updating attribute values

To have the value of an attribute updated when the attribute on the other end of flow is updated, you must use the function set flowportname, for example, if you have a flow port called x, you would call setX(5).

About this task

When this function is called, there is also an event generated called chflowportname. In our example, it would be chX. In order to be able to react to this event, you must define an event with this name in your model.

For both of these functions, the first letter of the flow port name is uppercase even if the actual name of the flow port begins with a lower-case letter.


Feedback