Introduction to Using Rational Rose
CIS 671, October 2001
Based on Notes from CIS 694E, Summer 2001
How to work with Rational Rose:
-
To start Rational Rose, type rose on the command prompt in your terminal.
- Window for Rational Rose will open. It might take some time.
- If you are working on a new assignment,
-
From the File menu, select New and save it as your HW/Project name.
- If you are continuing a previous assignment,
-
From the File menu, select Open and select the model you
want to work on.
- Follow the following guidelines to draw class diagram.
Changing Model Properties:
-
One of the folders in the browser is called Model Properties. Double click
on it.
- An Options window will appear. Click on the General tab.
- There are two font settings you will want to change;
- For default font use lucidatypewriter regular; font size 10.
- For documentation font use lucidatypewriter regular; font size 8.
- Under the Diagram tab, you can select global properties for your
diagrams. For example, you can choose whether to show on the class
diagram: attributes, visibility or operations.
Drawing the Class Diagram:
You will be working in Logical view model.
Thsi view shows what classes of objects are required without showing how
the objects might be implemented or how the user might interact with them.
-
The Logical View Class Diagram window may already be open. If so, skip to
step 3.
- Open the Logical View Folder. Double click on the icon next to Main.
(Alternately, right click on Main and select Open).
- To draw a class, click on the class icon on the toolbar. Move the cross bar
to the class diagram window and click.
- Name the class. Note that you do not want to use the same name as an Actor
in your Use Case diagram. For example, if you have a Student actor, the class
should be named StudentProxy.
- Now right click on the class to add attributes and methods to your class.
- Create all the classes you require for your class model. Using the
connection symbols from the toolbar, connect the classes to show the
relationship between those two classes (association,
generalization/specialization or aggregation). Do the same for all the classes.
- You can name associations using text box in the tool bar.
- To add multiplicity information, right click on the association line and
select the desired value.
For printing/saving diagrams:
-
To print/save your class/use case diagram select Print on the File menu. A
window will open.
-
If you want to save the diagram to a file rather than print, look to the
right of the Print window. On the right there is a small check box for this
option. Click on this box.
- To fit a large class diagram on one page, click on the layout option of the
Print window and check the box for Fit to page.
- If you save the file, it will be in .prn form. You can change this file to
.gif file (or any other format) by the following command in unix terminal:
"convert filename.prn filename.gif".
[convert uses the extensions of the input and output files you specify
to convert from the given input format to the desired output format.]
- You can use the xv command in UNIX to manipulate your image (Cropping,
rotating, etc.) Use "xv filename.gif".
Customizing a Diagram Toolbar:
If you want to change the toolbar for drawing a diagram:
-
From the Tools menu, select Options
-
Select the Toolbars tab
-
Select the toolbar you want to change:
-
A Customize Toolbar window will appear, allowing you to add or remove icons.
- Choose "Creates an association relationship" to allow bi-directional associations.