Specifying the port contract

Use the Contract tab to specify the port contract. The contract specifies the provided and required interfaces through relations to other interfaces.

About this task

There are two types of contract:

For both provided and required interfaces, three buttons are available:

If you selected the Reversed check box on the General tab, the bottom of the Contract tab displays a message in red stating that the contract is reversed.

Procedure

  1. To specify the provided interfaces, select the Provided folder button, then click the Add button in the top group box. The Add new interface window opens.
  2. Either type in the new name of the interface, or use the list to specify the interface.
  3. Click OK.
  4. You return to the Contract tab, which now lists the provided interface you specified.
  5. To specify the required interface, click the Required folder, then select Add. The Add New Interface window opens.
  6. Specify the required interface and then click OK.
    Note: If a provided interface (including the contract) has an association to another interface, the other interface is a required interface.
  7. Click OK.
    Note: If an interface provided by a port inherits from another interface, then by definition, the port also provides the base interface. This structure means that if you want to remove the base interface from the contract, you must remove the generalization between the two interfaces. (Before removing such an interface, the product notifies you that the generalization is also removed.)

Feedback