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:

Component Implements Interface

  1. Add a Component element.
  2. In the Modeling Palette, click the Interface icon .
  3. In the Diagram editor, click next to the Component element.
  4. Right-click the newly added Interface element and choose Show from the pop-up menu.
  5. Select As Icon.
  6. Add the Implementation link.

Component Provides Port Typed Interface

  1. Add a Component element.
  2. In the Modeling Palette, click the Interface icon .
  3. In the Diagram editor, click the target Component.
  4. Drag the cursor approximately one inch and click again.
    The IDE connects the Interface and the Component element and creates a Port.

Component Uses Interface

  1. Add a Component element.
  2. In the Modeling Palette, click the Assembly Connector icon Assembly Connect icon.
  3. In the Diagram editor, click next to the target Component element.
  4. Right-click the Interface element and choose Show from the pop-up menu.
  5. Select As Icon.
  6. In the Modeling Palette, in the Dependencies section, click the Usage icon .
  7. In the Diagram editor, click inside the Component element and then click the Interface icon.

Component Requires Port Type Interface

  1. Add a Component element.
  2. In the Modeling Palette, click the Assembly Connector icon Assembly Connector icon.
  3. In the Diagram editor, click the target Component element.
  4. 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.

Assembly Connector

  1. Add two Component elements to your diagram.
  2. In the Modeling Palette, click the Interface icon .
  3. In the Diagram editor, click the target Component and drag the cursor outside the Component element and click again.
  4. In the Modeling Palette, click the Assembly Connector icon Assembly Connector icon.
  5. In the Diagram editor, click inside the second Component.
  6. Move the cursor to the provided Interface and click the Interface.
See Also
Adding Component Elements
Working With Ports and Interfaces

Legal Notices