Panel diagrams Bind a control element to a model element In a panel diagram, the control element is a GUI that has to be connected to some “real” source/ target element. In Rational Rhapsody, binding (mapping) ties the operation between the control element to the model element it is to regulate or monitor. A binding definition for a control element defines the following binding settings of each control element. Љ Element type:
– Control element - input sets data to bound element – Monitor element - output gets data from bound element Љ Valid model elements for binding (attribute, event, and state) Љ Value attribute types that can be set/get by the control element (Number, String, or Boolean) A binding definition for a control element is predefined in Rational Rhapsody. It cannot be changed. For example, the Bubble Knob has the following binding definition: Љ Element role: input, output, or both Љ Valid model elements: attributes Љ Value types: numbers Be sure that the bounded element type (for example, an int ) is being supported by the control.
In the binding operation, you have to set the model element for binding. You can also set the instance path. 808 User Guide