A classifier role can be an instance of an existing class,
a new class that you create in the collaboration diagram, meaning
that it is not a realization of a class. This could be useful if you
create collaboration diagrams at the high-level analysis stage of
system design.
Procedure
- Click the Object button
.
- Click-and-drag to create the classifier
role.
- You can type the classifier role name in
the drawing or right-click the object to display the Features window
and type the name and additional information.
- Click OK.
Results
By default, a new classifier role has an <Unspecified> Realization value.
To make it an instance of a <New > or existing package, use
the drop-down list in the Features window. See Modifying the features of a classifier role more
information.