Use the Features window to define ports.
About this task
As with all elements,
you use the Features window to specify the features that define a
port.
On the General tab,
you define the general features for a port through the various controls
on the tab.
- In the Name field, you specify
the name of the port. The default name is port_n,
where n is an incremental integer starting with 0. To enter a detailed
description of the attribute, use the Description tab.
- You use the L button to
open the Name and Label window to specify the
label for the element, if any.
- In the Stereotype list,
you specify the stereotype of the port.
- To select from a list of current stereotypes in
the project, click the Select Stereotype button
.
- To sort the order of the selected stereotypes,
click the Change Stereotype Order button
. Note: The COM stereotypes are constructive;
that is, they affect code generation.
- In the Contract list, you
specify the port contact. The list contains the following possible
values:
- In the Multiplicity list,
you specify the multiplicity of the port. The multiplicity is included
in the port label if it is greater than 1.
- In the Visibility list you
specify the visibility for the port (Public, Protected,
or Private). The default value is Public.
- In the Attributes area,
you specify the port attributes:
- If you select the Behavior check
box, you make the port a behavioral port, which means
messages sent to the port are relayed to the owner class. By default,
the check box is cleared.
- If you select the Reversed check
box, the provided interfaces become the required interfaces, and the
required interfaces become the provided interfaces.