Interfaces

Interfaces define a set of behavioral features that are usually associated with a specific service.

Context

Interfaces can be related to a block via interface realization, specifying that the block realizes the features defined in the interface (see the Interface Realization tool in Block Definition Diagrams).

Interfaces can be related to a port, specifying the features that the port supports (see Adding Interfaces to Ports).

Procedure

  1. Drag the Interface tool from the toolbox and drop it onto your diagram.

    The following properties are available on the Info tab in the General category:

    Property

    Description

    Name/Code/Comment

    Identify the object. The name should clearly convey the object's purpose to non-technical users, while the code, which is used for generating code or scripts, may be abbreviated, and should not normally include spaces. You can optionally add a comment to provide more detailed information about the object. By default the code is synchronized with the name. To decouple name-code synchronization, enter a new code in the Code field.

    The other tabs such as Dependencies and Diagrams contain additional properties information. For details, see Object Properties.
  2. To define an operation for the interface, choose Operation in the context menu. Specify a feature direction (provided/required/providedrequired) and return type as appropriate.