Specifying the features of a port Specifying the features of a port As with all elements, you use the Features window to specify the features that define a port. The Features window for a port includes five tabs: General , Contract , Relations , Tags , and Properties . The Port General tab On the General tab, you define the general features for a port through the various controls on the tab. Љ In the Name box 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. For information on creating labels, see Descriptive labels for elements . Љ In the Stereotype list you specify the stereotype of the port. For information on creating stereotypes, see Stereotypes . – To select from a list of current stereotypes in the project, click the Select – To sort the order of the selected stereotypes, click the Change Stereotype Stereotype button . Order button . Note: The COM stereotypes are constructive; that is, they affect code generation. Љ In the Contract drop-down list box you specify the port contact. The list contains the following possible values:
means the contract is implicit. enables you to define a new contract. If you select this value, Rational Rhapsody displays a separate class Features window so you can define the new interface. – A list of classes with a stereotype that includes the word “interface.” The arrow button next to the Contract box opens the Features window for the contract. However, this button is disabled if the contract is implicit. Љ In the Multiplicity drop-down list box you specify the multiplicity of the port. The multiplicity is included in the port label if it is greater than 1. Љ In the Visibility drop-down list box you specify the visibility for the port ( Public , Protected , or Private ).
The default value is Public . Rational Rhapsody 93