Introduction To Rational Rose: General Guidelines and Class Diagrams
Introduction To Rational Rose: General Guidelines and Class Diagrams
Rational Rose
A specialized tool for drawing UML diagrams and managing a projects design. Considered industry standard. Has many specialized modules and editions.
Code generation Real-time analysis
Main toolbar
Rose workspace
Diagram
Documentation
Dynamic toolbar
Used for analysis Contains UC diag., actors. Used for design Contains packages, classes, assoc. Class, sequence and similar diag. Used for components design and final deployment diagrams
Logical view
Double-click on an item to open its specification. Right-click on an item to add a diagram or sub-items. Most items can be dragged and dropped into a diagram to create an instance. If an item is modified, the change is reflected in the entire project.
Contains the projects packages, classes, interfaces and associations. Classes and interfaces contains their fields and methods. Classes are drag-and-drop-able into diagrams to create instances. If a class is modified in one place, the change is reflected to the whole project.
3.
4. 5. 6. 7. 8. 9. 10. 11. 12.
Select items Add text Add note Bind note to item Create new class Create new interface Draw new association Association class Create new package Draw dependency Class inheritance Interface implementation
Standard UML class diagram Distinguishes between class inheritance (plain) and interface implementation (dotted). Classes, interfaces and associations are items. Right-click on an item to:
Change appearance options Add attributes and operations Open spec. Anything else
Pitfall 1: when adding attr. and operations, pressing enter start a new item.
Pitfall 2: when using delete to delete an item, it is removed only from the diagram, not from the model.
The shortcut to remove an item from the model is ctrl-D, or use right-click.
Pitfall 3: Rose uses Pascal notation for attributes and operation types.
The type follows the identifier, using :. The return type of a function follows the function.
For example:
attr : type func (arg : type) : type
The general and details tabs control various parameters of the class itself The attributes and operations tabs allows inserting, editing or deleting attributes and operations using right-click. The relations tab shows the class relations. Ignore other tabs, for now.
The general tab allows naming the assoc. and the participating classes. Side A is the pointed side. Side B is the pointing. Role general tab allows controlling the roles name and visibility. Role details controls the important things:
Multiplicity Navigable Aggregation / containment (e.g. by value) Qualifiers and constraints