In composite structure diagrams,
you can define interfaces to specify the types of interactions that
occur in a port and to communicate the requirements and expectations
of properties in the containing classifier. Required interfaces, which
have a usage relationship from a class to an interface, specify the
requests that a classifier can make to its environment through a port.
Provided interfaces, which have an interface realization relationship
from a class to an interface, specify the requests that the environment
can make to a classifier through a port.
Before you begin
You must be in the
Modeling perspective
and have a composite structure diagram open that contains a port.
The model must also contain classes that implement and use other interfaces.
About this task
To define a required and a provided interface on a port:
Procedure
- Complete one of the following steps:
- To define a required interface, in the Palette, click Required
Interface.
- To define a provided interface, in the Palette, click Provided
Interface.
- Click on a port in the diagram and complete one of the
following steps:
- To define a new interface on the port, click Create
Interface.
- To define an existing interface, click Select Existing
Element and, in the Select Element window,
click an interface and click OK.