Creating an interface
You can create an Interface through a Class Diagram, Composite Structure Diagram or a Modeler pane.
To create an interface through a class diagram:
1. On the Class Diagram tab, click the
Interface button, and then click on the diagram in free space or within a Package.
If you click within a Package on the diagram, the Interface is created as a child item of that Package.
2. Type the name of the Interface, and then press the Enter key.
To create a provided interface on a class diagram or composite structure diagram:
1. On the Class Diagram or Structure Diagram tab, click the
Provided Interface button.
2. Click the Class, Data Type, Signal, Part or Port on which the Interface is dependent.
3. Double-click in free space.
4. Type the name of the provided Interface, and then press the Enter key.
Modeler adds the provided Interface as a lollipop, linked to the Class, Data Type, Signal, Part or Port through an interface realization Dependency.
| You can click in free space to create the provided Interface, and then click the Class, Data Type, Signal, Part or Port on which the provided Interface is dependent. |
To create a required interface on a class diagram or composite structure diagram:
1. On the Class Diagram or Structure Diagram tab, click the
Required Interface button.
2. Click the Class, Data Type, Signal, Part or Port on which the Interface is dependent.
3. Double-click in free space.
4. Type the name of the required Interface, and the press the Enter key.
Modeler adds the required Interface as a cup, linked to the Class, Data Type, Signal, Part or Port through a uses Dependency.
| You can click in free space to create the required Interface, and then click the Class, Data Type, Signal, Part or Port on which the required Interface is dependent. |
To create an interface through a Modeler pane:
1. In a Modeler pane, locate the item that is to own the Interface, that is, a Package, Class, Interface or the Model.
2. Right-click the owning item, and select > or select > > > .
3. Type the name of the Interface, and then press the Enter key.