You can create ports in any diagram that has the Port button
in its Diagram Tools.
Procedure
- Click the Port button
on Diagram Tools.
- Click the class boundary to place the port.
A text box opens so you can name the new port.
- Type the name for the port, then press Enter to
dismiss the box. The port label uses the convention portName{[multiplicity]}.
For example:
- p
- p[5]
- p[*]
Results
The new port displays as a small square
on the boundary of its class.
Alternatively, you can create a port in the following
ways:
- Use the Ports tab of the
Features window for the class. For more information about this tab,
see Defining ports.
- Right-click the class in the browser and then select .
A port can have a provided interface (lollipop or ball) and
a required interface (socket), see Managing ports.