Service item (IDL code)
Create a Service in the following ways:
On an Internal Component Diagram: on the diagram's tab, click the Service button, and then click within the Component or Component Part on which you want to create the Service.
Right-click the Component, Connector or Port Type that is to own the Service, point to New, point to IDL Profile, and then click Service.
When you create a Service, you must create or select a type (Interface) for that Service.
To change the type of a Service: right-click the Service, 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 Service match the new type: right-click the Service, and then click Synchronize IDL Element Names.
By default, the name of the Service is set to that of the Interface it uses as a type. If the name of a Service or Interface is changed and you want to change the name of the Service to match the name of the Interface it uses as a type: right-click the Service, and then click Synchronize IDL Element Names. Note that the name of the Service 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 Service, and the scoping Package of the Service or Interface.
For information about connecting a Service 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 Service's notation is as follows:
Note that on an Internal Component Diagram, a Service's view options are set through the Port entry.
A Service is based on a UML Attribute or Role.
The following sections provide information about how a Service is used in the model.
Owned By
Note that when you create a Service on a Component Part, the Service 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. Rules for connecting items on an internal component diagram.
Shown on these diagrams
IDL Profile properties
None.
Was this helpful?