An attribute-to-attribute connection links two attribute values together. This causes the value of one attribute to change when the value of the other changes, except as noted below.
A connection of this type appears as a bidirectional dark blue
line
with
dots at either end. The solid dot indicates the target, and the
hollow dot indicates the source.
For most attribute-to-attribute connections, the target attribute is set to the value of the source attribute when your part is constructed at run time. However, deferred creation affects the timing of initialization in the following ways:
| Note: | These connections never take parameters. |
If the source of an attribute-to-attribute connection is a variable, its initialization type determines the initializaiton order.
Table 3. Initialization Order with a
Variable Source
| If the initialization type is... | Initialization is from... |
|---|---|
| apply | target to source |
| targetInit | variable source to target |
| broadcast | variable source to target |
In order to achieve the behavior that you anticipate, you must
know something about the attributes you are connecting. The
following table shows the results of connecting attributes of
different types.
Table 4. Behavioral Considerations for
Connections
| |
And the target has both set member function and event... | And the target has an event but no set member function... | And the target has a set member function but no event... |
| If the source has both set member function and event... | Source and target values are fully synchronized. | VisualAge automatically reverses the connection. | The source initializes the target. The target is updated whenever the source's value changes. |
| If the source has an event but no set member function... | The source initializes the target. The target is updated whenever the source's value changes. | This connection is not valid. | The source initializes the target. The target is updated whenever the source's value changes. |
| If the source has a set member function but no event... | The source initializes the target only. The source is updated whenever the target's value changes. | VisualAge automatically reverses the connection. | The source initializes the target. No further updates occur. |
Usage Notes:
The Source and Target of a
Connection
Connections
Connecting Features to Other
Features
Attribute-to-Attribute
Connection - Settings Window
VisualAge User Interface
Parts
