About this task
There are two types of
contract:
- Explicit means that the contract is an explicit
interface in the model. An explicit contract can be reused so several
ports can have the same contract.
- Implicit means that the contract is a "hidden"
interface that exists only as the contract of the port.
For both provided and required interfaces,
three buttons are available:
- Add to add a new interface
to the list of available interfaces. For provided interfaces, this
means that the contract inherits the selected interface; for required
interfaces, this means that the contract has a new dependency stereotyped «Usage» towards
the interface.
- Edit to open the Features
window for the selected element so you can modify it.
- Remove to remove the relation
with the contract for the selected interface.
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.