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

Advanced Properties of Operations

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 Advanced tab of the Operation Properties dialog.

Access     In diagram or Project Browser:
 
Click on element | Element | Operations (F10) > General | select operation > Advanced, or
Right-click on element | Features & Properties | Operations > General | select operation > Advanced

Available Options

Field/Button

Usage

See also

Concurrency

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

 

 

Pure

For C++, select this checkbox to indicate that the method statement is pure virtual syntax. For example:

 

virtual void myFunction( ) = 0;

 

(This option is not shown for operations of State or State Machine elements.)

 

 

Const

Select this checkbox to indicate that the return type of the method is constant.

(This option is not shown for operations of State or State Machine elements.)

 


Is Query

Select this checkbox to indicate that the method does not modify the object.

(This option is not shown for operations of State or State Machine elements.)

 

 

Return Array

Select this checkbox to indicate that the method's returned value is in the form of an array.

(This option is not shown for operations of State or State Machine elements.)

 

 

Synchronized

For Java, select this checkbox to set a code engineering flag that relates to multi threading.

(This option is not shown for operations of State or State Machine elements.)

 

 

Advanced

Select the checkbox for each coding convention to assign as a Tagged Value (corresponding to a coding keyword).

 

Modeling Conventions

Redefined Operation

If the parent element is the source of a Generalize connector, and you want the selected operation to redefine an operation in the target element, click on the Add button.

The Select Operation dialog displays, showing the operations in the target element. Click on the appropriate operation; if you want to redefine more than one operation in the target element, press ( Ctrl ) as you click on each one.

Click on the OK button.

A statement displays in the Redefined Operation field of the format:

 

<Package>::<Target Element>.<Operation>

 

On the element in the diagram, the Operation compartment shows the complete statement, of the format:

 

<Operation>:{redefines <Package>::<Target Element>.<Operation>

 

If you want to change the redefined operation(s) at any point, again click on the Add button and repeat the process; the original selection is replaced by the new selection.

 

Generalization

 

Select <Item> Dialog

Raised Exception

If you want the code to check for an exception and, if it occurs, skip to the code defined by a Classifier element, you can identify that element in this field.

Click on the Add button. The Select Classifier dialog displays; browse or search through the model hierarchy for the appropriate Classifier.

Click on the OK button; the name of the Classifier displays under the Exception heading.

If you want to change the Classifier at any point, again click on the Add button and repeat the process; the original selection is replaced by the new selection.

 

 

 

Select <Item> Dialog

Close

Click on this button to save the field values and close the dialog.

 

 

Cancel

Click on this button to close the dialog without saving the field values.

 

 

Learn more