Topics
Prev Next

Operation Details

In defining the behaviors of the model elements you create, you can also define how the operations translate into methods in code. For this, you set options on the 'Method <operation name>' panel of the 'Operations' tab of the 'Features' dialog.

Access

Ribbon

Design > Element > Operations

Context Menu

Right-click element in diagram | Features and Properties | Operations  or

Right-click element in Project Browser | Operations  or

Right-click operation in Project Browser | Operation Properties

Keyboard Shortcuts

F10

Other

In Project Browser or in a diagram, double-click on an Operation

Define Detailed Properties

Option

Action

See also

Concurrency

Click on the drop-down arrow and select the concurrency of the operation - Sequential, Guarded or Synchronous.

Virtual

If the operation's language is set to C++, click on the drop-down arrow and map to the C++ Virtual keyword.

Otherwise this option is 'Abstract'.

(This option is not shown for State or StateMachine elements.)

Abstract

Pertaining to an abstract function. Click on the drop-down arrow and set to True or False.

(This option is not shown for State or StateMachine elements.)

Static

Indicate whether the operation is a static member. Click on the drop-down arrow and select True or False

(This option is not shown for State or StateMachine elements.)

Modifiers

Click on the button to display the 'Select Modifiers' dialog, and select the appropriate checkboxes:

  • 'Pure' - indicates that the method statement is pure virtual syntax. For example:

           virtual void myFunction() = 0;

  • 'Const' - indicates that the return type of the method is constant
  • 'Is Query' - indicates that the method does not modify the object
  • 'Return Array' - indicates that the method's returned value is in the form of an array
  • 'Synchronized' - for Java, sets a code engineering flag that relates to multi threading

(These options are not shown for State or StateMachine elements.)

Advanced

Click on the drop-down arrow and select True for each coding convention to assign as a Tagged Value on the operation (corresponding to a coding keyword).

Modeling Conventions

Learn more