Client item (IDL code)
Create a Client in the following ways:
On an Internal Component Diagram: on the diagram's tab, click the Client button, and then click within the Component or Component Part on which you want to create the Client.
Right-click the Component, Connector or Port Type that is to own the Client, and select New > IDL Profile > Client.
When you create a Client, you must create or select a type (Interface) for that Client.
The isMultiple property specifies whether the client represents a uses declaration or a uses multiple declaration. By default, the isMultiple property of a Client is set to FALSE. To set isMultiple to TRUE: right-click the Client, and select Set > isMultiple. From the dialog, select TRUE, and then click OK.
The Asynchronous property specifies whether the client is asynchronous. By default, the Asynchronous property of a Client is set to FALSE. To set Asynchronous to TRUE: right-click the Client, point to Set, and then click Asynchronous. From the dialog, select TREU, and then click OK.
To change the type of a Client: right-click the Client, point to Set, and then click Type. From the dialog select the Interface you want to use as a type. To make the name of the Client match the new type: right-click the Client, and then click Synchronize IDL Element Names.
By default, the name of the Client is set to that of the Interface it uses as a type. If the name of a Client or Interface is changed and you want to change the name of the Client to match the name of the Interface it uses as a type: right-click the Client, and then click Synchronize IDL Element Names. Note that the name of the Client is also set to the name of the Interface it uses as a type when the Synchronize IDL Element Names command is used from the following items: the Interface that is used as type, the Component that owns the Client, and the scoping Package of the Client or Interface.
For information about connecting a Client to other items on an Internal Component Diagram, see Rules for connecting items on an internal component diagram.
When shown on an Internal Component Diagram, a Client's notation is as follows:
Note that on an Internal Component Diagram, a Client's view options are set through the Port entry.
A Client is based on a UML Attribute or Role.
The following sections provide information about how a Client is used in the model.
Owned By
Note that when you create a Client on a Component Part, the Client is created as a child of the Component Part's type, that is, a Component.
Owns
Connection (UML Association) - the Connection is owned jointly by the two items it links. See Rules for connecting items on an internal component diagram.
Shown on these diagrams
IDL Profile properties
Asynchronous - specifies that the Client is asynchronous.
isMultiple - specifies that the Client uses a multiple declaration.