Binding 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 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.

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:

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:

Procedure

  1. Right-click the control and select Features to open the Control Properties window.
  2. On the Element Binding tab, depending on your situation:
    • If the control has no binding, the Control Binding Browser opens with the project container as the selected item. Use the browser to navigate to and select the elements for which you want to bind to the control element, or you can enter the element path in the Instance Path box.

      The browser root is the project and the end nodes are the meta classes that can be bound for the particular control element. If no relevant end node is found, the system notifies you that no relevant item was found and the Control Properties window does not open.
    • If the control has a bound element, the browser opens with the bound model element selected.
    • If no relevant element for binding is found in the model, the Element Binding tab displays blank with a note to that effect.
  3. Click OK.

Feedback