Creating ports

You can create ports in any diagram that has the Port button in its Diagram Tools.

Procedure

  1. Click the Port button Port button on Diagram Tools.
  2. Click the class boundary to place the port. A text box opens so you can name the new port.
  3. Type the name for the port, then press Enter to dismiss the box. The port label uses the convention portName{[multiplicity]}. For example:
    1. p
    2. p[5]
    3. p[*]

Results

The new port displays as a small square on the boundary of its class.

Diagram showing ports as small squares on the boundary of its class

Alternatively, you can create a port in the following ways:

A port can have a provided interface (lollipop or ball) and a required interface (socket), see Managing ports.


Feedback