Semantics
An interface is a specifier for the externally-visible operations of a class, component, or other classifier (including subsystems) without specification of internal structure.
Procedure for creating interface
In order to create class,
1. | Click [Toolbox] -> [Class] -> [Interface] button. |
![ch05_2074](ch05_2074.jpg)
2. | And click at the position where interface will be placed in the [main window]. Then interface quick dialog is opened. Enter the interface name at the quick dialog. |
![ch05_2075](ch05_2075.jpg)
3. | Press [Enter] key. Then the result is as follows. |
![ch05_2076](ch05_2076.jpg)
Procedure for creating providing relationship
In order to create providing relationship,
1. | Click [Toolbox] -> [Class] -> [Realization] button. |
![ch05_2077](ch05_2077.jpg)
2. | Drag from one(Class, Port, Part, Package, Subsytem) and drop to interface in the [main window]. |
![ch05_2078](ch05_2078.jpg)
3. | Then providing interface relationship is created as follows. |
![ch05_2079](ch05_2079.jpg)
Procedure for creating requiring relationship
In order to create requiring relationship,
1. | Click [Toolbox] -> [Class] -> [Dependency] button. |
![ch05_2080](ch05_2080.jpg)
2. | Drag from one(Class, Port, Part, Package, Subsytem) and drop to interface in the [main window]. |
![ch05_2081](ch05_2081.jpg)
3. | Then requiring interface relationship is created as follows. |
![ch05_2082](ch05_2082.jpg)
|