In
a panel diagram, the control element is a GUI that has
to be connected to some "real" source/target element. In IBM® Rational® Rhapsody®,
binding (mapping) ties the operation between the control element to
the model element it is to regulate or monitor.
About this task
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.
To bind a control element to a model element in a panel
diagram: