In composite structure diagrams,
you can add a port to a structured classifier to specify a distinct
interaction point between that classifier and its environment or between
the behavior of the classifier and its internal parts.
Before you begin
You must have a composite structure
diagram open in the
Modeling perspective and
it must contain a part typed by a classifier.
Procedure
- In the Palette, click Port.
- In the diagram editor, complete one of the following steps:
- To add a port between a classifier instance and its environment,
click either the external border of the composite structure diagram
or in any blank area inside the structure compartment.
- To add a port between the behavior of the classifier and its
internal parts, click the interior border of a part.
- To specify the type of port, complete one of the following
steps:
- To create an unspecified port, click Unspecified.
- To create a port from a new class, click Create
Class.
- To create a port from a new interface, click Create
Interface.
- To create a port from an existing element, click Select
Existing Element, select an element from the list of available
structured classifiers, and click OK.
- Type a name and press Enter.