Engineering

Expand all | Collapse all

Rhapsody standard ports contract vs. provided or requested interfaces

Jump to Best Answer
  • 1.  Rhapsody standard ports contract vs. provided or requested interfaces

    Posted Wed August 18, 2021 05:08 AM
    I am using Rhapsody 8.3.1. With standard ports the Features dialog contains in the General tab the Contract field and in the Contract tab the Provided Interfaces and Required Interfaces fields. When I select interfaces in the Provided and/or Required Interfaces fields they do not appear in the Contract field in the General tab and if I select an interface in the Contract field it appears always in the Provided Interfaces field and I can not define it as requested interface.
    Could you explain, how the Contract field in the General tab and the Provided and Required Interfaces fields in the Contract tab are related and in which cases which of the fields should be used?

    Class diagram with a class and interfaces selected as provided / requested interfaces at the ports of the class

    Features dialog of a standard port, Contract tab, interface selected as provided interface
    Features dialog of a standard port, General tab, no interface selected (<<implicit>>)


    ------------------------------
    Stefan Thormann
    ------------------------------


  • 2.  RE: Rhapsody standard ports contract vs. provided or requested interfaces
    Best Answer

    Posted Thu August 19, 2021 03:11 PM
    Hello Stefan,

    Standard ports in Rhapsody are defaulted to be an "implicit" port.  The purpose is to enable rapid prototyping (a faster path to getting multiple objects/parts to exchange messages during animation/simulation).  With an implicit port, the executing Rhapsody model will automatically relay messages (events, operations) at those ports.

    On the General tab, the Contract field can be a shortcut for entering an interface in the Contract tab.  My recommendation, however, is to use the Contract tab to define all Provided and Required interfaces.

    Edmund Mayer

    ------------------------------
    Edmund Mayer
    Systems and Software Engineer
    IBM Engineering
    ------------------------------