ibm Rational Rhapsody 7.5 — Atomic flow ports

Attributes, operations, variables, functions, and types Flow ports Flow ports allow you to represent the flow of data between objects in an object model diagram, without defining events and operations. Flow ports can be added to objects and classes in object model diagrams. They allow you to update an attribute in one object automatically when an attribute of the same type in another object changes its value. Note Flow ports are not supported in Rational Rhapsody in J. Adding a flow port To add a flow port, right-click the object or class and then select Ports > New Flowport .

The method used for specifying the data that is to be sent/received via the flow port depends upon the type of flow port used - atomic or non-atomic. Non-atomic flow ports can only be used if your model uses the SysML profile. The following sections describe these two types of flow ports. Atomic flow ports Atomic flow ports can be input or output flow ports, but not bidirectional. To specify the flow direction, open the Features window for the flow port and select the appropriate direction. You specify the attribute that is to be sent/received via the flow port by giving the attribute and flow port the same name.

If no attribute name matches the name of the flow port, a warning to this effect will be issued during code generation. Atomic flow ports allow the flow of only a single primitive attribute. When connecting two atomic flow ports, you have to make sure that one is an input flow port and one is an output flow port. The type of the attribute in the sending and receiving objects must match. To connect two flow ports, use the Link connector. Rational Rhapsody 597