iAnywhere Water System User Manual

Chapter 2 Building an Object-Oriented Model
53
3 Type an attribute name and an attribute code.
4 Click the Stereotype column.
5 Select a stereotype from the Stereotype dropdown listbox.
or
Type a stereotype in the Stereotype column.
6 Click the Data Type column.
7 Select a data type from the Data Type dropdown listbox.
or
Type a data type in the Data Type column.
8 Click the Visibility column.
9 Select a value from the Visibility dropdown listbox.
10 Click the Multiplicity column.
11 Select a cardinality value from the Multiplicity dropdown listbox.
or
Type a cardinality value in the Multiplicity column.
12 Type the name of the class to which you want to associate the attribute in
the Parent column.
13 Click OK.
The attribute is created for the class.
Creating an attribute from a class in a diagram
You can create an attribute from a class or an interface in a diagram in the
same way.
v To create an attribute from a class in a diagram:
1 Double-click a class in the model.
The class property sheet appears.
2 Click the Attributes tab.