Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

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     In diagram or Project Browser:
 
Click on element | Element | Operations (F10) > Operations or
Right-click on element | Features & Properties | Operations > Operations

Define Detailed Properties

Field/Option/Button

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 (below).

(This option is not shown for State or State Machine 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 State Machine 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 State Machine 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 State Machine 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