How to use multiplicities with SysML1.2 standard ports in IBM Rational Rhapsody
How do you use multiplicities with SysML1.2 standard ports in IBM Rational Rhapsody?
This is not documented elsewhere.
Multiplicities works in a similar way for SysML1.2 standard ports as it does with UML standard ports. Rhapsody still uses the OPORT_AT (=OUT_PORT_AT) macro. You have two options:
- Add a send action and Rhapsody will automatically generate the correct macro OPORT_AT with the index you specified.
- Add the OPORT_AT macro manually to the statechart. For Rhapsody in C, this macro is not supported thus you don't see Index field on the Feature window.
The usage of these two options are shown in the following image:
An example project is attached.
All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
More support for:
Software version: 7.6, 22.214.171.124, 7.6.1, 126.96.36.199, 188.8.131.52, 184.108.40.206, 220.127.116.11, 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.6, 8.1, 8.1.1, 8.1.2, 18.104.22.168
Operating system(s): Linux, Windows
Reference #: 1959822
Modified date: 15 June 2015