Adding Interfaces to Component Elements
See Also
This topic describes how to add different types of interfaces to the Component elements of a UML Modeling Component diagram.
An Interface is a specifier for the externally visible operations of a Component element without specification of internal structure. A port provides an interaction point between the Component element and its environment. Ports can be named, for example: DBport and UIport.
Use the information in one of the following sections to add a specific type of interface to your Component diagram:
- Add a Component element.
- In the Modeling Palette, click the Interface icon
.
- In the Diagram editor, click next to the Component element.
- Right-click the newly added Interface element and choose Show from the pop-up menu.
- Select As Icon.
- Add the Implementation link.
- Add a Component element.
- In the Modeling Palette, click the Interface icon
.
- In the Diagram editor, click the target Component.
- Drag the cursor approximately one inch and click again.
The IDE connects the Interface and the Component element and creates a Port.
- Add a Component element.
- In the Modeling Palette, click the Assembly Connector icon
.
- In the Diagram editor, click next to the target Component element.
- Right-click the Interface element and choose Show from the pop-up menu.
- Select As Icon.
- In the Modeling Palette, in the Dependencies section, click the Usage icon
.
- In the Diagram editor, click inside the Component element and then click the Interface icon.
- Add a Component element.
- In the Modeling Palette, click the Assembly Connector icon
.
- In the Diagram editor, click the target Component element.
- Drag the cursor approximately outside de Component element and click again.
The IDE connects the Assembly Connector and the Component element and creates a Port.
- Add two Component elements to your diagram.
- In the Modeling Palette, click the Interface icon
.
- In the Diagram editor, click the target Component and drag the cursor outside the Component element and click again.
- In the Modeling Palette, click the Assembly Connector icon
.
- In the Diagram editor, click inside the second Component.
- Move the cursor to the provided Interface and click the Interface.
- See Also
- Adding Component Elements
- Working With Ports and Interfaces
Legal Notices