ibm Rational Rhapsody 7.5 — Basic API tasks

Selecting which ports to display in the diagram Deleting a port To remove a specific port from a class, use the Delete from Model or Remove from View option in the menu for the owning class. Programming with the port APIs in C++ The following sections describe the APIs you use to program using ports. The topics are as follows: Љ Basic API tasks Љ Intermediate-level tasks Љ Advanced-level tasks Basic API tasks This section describes the basic APIs used to exchange messages with and instantiate ports. Note The following example is not complete; it is simply a reference for the subsequent table of API calls. Consider the following example:

The following table shows the calls to use to perform the specified tasks. Rational Rhapsody 101 Task Call Call an operation. OUT PORT(src)->f(); _ Send an event from a to b using the ports. OUT PORT(src)->GEN(evt); _ Listen for an event from port src to port mon. evt[IS PORT(mon)]/ _ doYourStuff();