Using rapid ports

The product supports rapid ports: you can simply draw ports, connect them through links, create a statechart, and the ports exchange events without any additional information. In addition, if a port is not connected to any of the internal parts for a class, the code generator assumes that it is a behavioral port and messages are relayed to or from the class. In rapid mode, the classes must be reactive because IBM® Rational® Rhapsody® assumes that events are exchanged.

About this task

Rapid ports would be useful in the following situations:

Note: Once you specify the contract on a port, you must specify the contract on all the ports that are connected to it. Otherwise, the code generator sends a warning that there is a mismatch in the contracts and the links are not created.

Rational Rhapsody uses the values of the following framework properties to implement the rapid ports:

Consider the following figure, which shows an object model diagram that uses rapid ports.

Object model diagram that uses rapid ports

Feedback