Creating primitive operations

A primitive operation is one whose body you define yourself instead of letting IBM® Rational® Rhapsody® generate it for you from a statechart.

Creating primitive operations using the Features window for a class

Procedure

  1. On the Rational Rhapsody browser, double‑click a class to open its Features window.
  2. On the Operations tab, either click the <new> row in the list of operations or click the New button in the upper, right corner of the window and select PrimitiveOperation. The new row is populated with the default values.
  3. By default, the product names the new primitive operation Message_n, where n is greater than or equal to 0. Type the new name for the operation in the Name column.
  4. Change the other default values as necessary.
  5. Click OK.

Creating primitive operations using the browser

About this task

Alternatively, you can create a primitive operation through the use of the Rational Rhapsody browser, as follows:

Procedure

  1. In the Rational Rhapsody browser, right-click the class, actor, operation, or use case node to which you want to add the operation and select Add New > Operation. Alternatively, you can select the item and choose Edit > Add New > Operation from the menu bar.
  2. Rename the operation.

Feedback