Chapter 2 Building an Object-Oriented Model
3Type an operation name and an operation code.
4Click OK.
A new operation is created in the Operations category.
Creating an operation from the list of operations
ϖTo create an operation by inserting it in the list:
1Select Model➤ Operations. The list of operations appears.
Accessing the list of operations
The list of operations is accessible only from a diagram. If the current diagram is of a package, the list contains all the operations that exist in the package. If the current diagram is of the model, the list contains all the operations that exist in the model.
2Click a blank line in the list. or
Click the Add a Row tool.
An arrow appears at the beginning of the line.
3Type an operation name and an operation code.
4Click the Stereotype column.
5Select a stereotype from the Stereotype dropdown listbox. or
Type a stereotype in the Stereotype column.
6Click the Return Type column.
7Select a return type from the Return Type dropdown listbox. or
Type a return type in the Return Type column.
8Click the Visibility column.
9Select a value from the Visibility dropdown listbox.
10Click OK.
The operation is created for the class.
69