0% found this document useful (0 votes)
64 views4 pages

Usecase Diagram

1) The document provides instructions for using Rational Rose software to create UML diagrams like class, use case, sequence, and collaboration diagrams. 2) It describes how to open and save models, customize properties, and draw the different diagram types step-by-step. 3) Additionally, it covers printing/saving diagrams, customizing toolbars, and setting permissions for team project directories.

Uploaded by

haribabu mada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views4 pages

Usecase Diagram

1) The document provides instructions for using Rational Rose software to create UML diagrams like class, use case, sequence, and collaboration diagrams. 2) It describes how to open and save models, customize properties, and draw the different diagram types step-by-step. 3) Additionally, it covers printing/saving diagrams, customizing toolbars, and setting permissions for team project directories.

Uploaded by

haribabu mada
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Introduction to Using Rational Rose

 
Before Using Rational Rose:
 
If you are doing individual work (such as homework), you should create a
directory to save your Rose models.� For example, in a UNIX terminal
window, type
��������� mkdir HW
If you are working on your team project, your model should be saved in your
team directory.
 
How to work with Rational Rose:
 
1)     To start Rational Rose, type �rose� on the command prompt in your
terminal.
2)     Window for Rational Rose will open. It might take some time.
3)     If you are working on a new assignment,
From the File menu, select New and save it as your HW/Project name.
4)     If you are continuing a previous assignment,
From the File menu, select Open and select the model you want to work
on.
5)     Follow following guidelines to draw class diagram and use case model.
 
Changing Model Properties:
 
1)     One of the folders in the browser is called Model Properties.� Double
click on it.
2)     An �Options� window will appear.� Click on the �General� tab.
3)     There are two font settings you will want to change;
a.      For �default font� use MS Sans serif regular; font size 10
b.     For �documentation font� use MS Sans serif regular; font size 8
4)     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 Use Case Diagram:


 
1)     Open folder Use Case View. Name your use case diagram.
2)     Double click on the Use Case View icon or right click on Use Case View
and select Open.
3)     Now click on the icon for actor and draw an actor on use case view
diagram. Actor will represent your user or the client, which will interact
with your system.
4)     Now click on the icon for use case and draw use cases for the system.
5)     Now click on the appropriate arrow for the relation between actor and
use case.
6)     Click on the package and show appropriate relation among these three
entities.
 
Drawing the Class Diagram:
 
You will be working in Logical view- Processing requirements model and
data storage requirements model. Shows what classes of objects are required
without showing how the objects might be implemented or how the user
might interact with them.
1)     The Logical View Class Diagram window may already be open.� If so,
skip to step 3.
2)     Open the Logical View Folder.� Double click on the icon next to
Main.� (Alternately, right click on Main and select Open).
3)     To draw a class, click on the class icon on the toolbar. Move the cross
bar to the class diagram window and click.
4)     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.
5)     Now right click on the class to add attributes and methods to your class.
6)     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.
7)     You can name associations using text box in the tool bar.
8)     To add multiplicity information, right click on the association line and
select the desired value.
 
For printing/saving diagrams:
 
1)     To print/save your class/use case diagram select Print on the File menu.
A window will open.
2)     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.
3)     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�.
4)     If you save the file, it will be in .prn form. You can change this file to .gif
file (or any other format) by 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.]
5)     You can use the display command in UNIX to manipulate your image
(Cropping, rotating, etc.) Use display filename.gif
 
Drawing Sequence Diagrams
 
1.     From Use Case View, Click to highlight the Use Case name.
2.     Right click and select New
3.     Select Sequence Diagram and type a name for the diagram in the
browser.
4.     You can now double click the icon next the name to open the sequence
diagram window.
5.     To put actors on the sequence diagram,
In the browser, under Use Case View, click on the desired actor and drag
it onto the sequence diagram window
6.     To put objects on the sequence diagram
In the browser, under Logical View, click on the desired class and drag it
onto the sequence diagram window.
7.     Note that if you use the toolbar to put an object on the sequence diagram,
the tool will ask you for its class.� If the class doesn�t exist in your
Logical View, you will have to create it.
8.     The tool will place your actors and objects from left to right in the order
you select them.� Once they are in the window, you can rearrange in the
usual manner.
9.     To add a message
In the toolbar, select the message arrow
Click on the lifeline of the source of the message and drag to the lifeline
of the destination of the message.
10. To add a message name
Right click on the message arrow
You can either select one of the existing messages, or
select <new operation> to add a new message
 
Drawing Collaboration Diagrams
 
1.     If you have not yet drawn a sequence diagram, follow steps 1-3 in
�Drawing a Sequence Diagram�, except select Collaboration Diagram
in step 3.� The steps to put actors and objects on the diagram are similar.
2.     If you have an existing sequence diagram, you can have the tool generate
a collaboration diagram for you:
                                                              i.      In the browser click on the name of the sequence diagram

to highlight it
                                                            ii.      Pull down the Browse menu from the menu bar at the top

                                                          iii.      Select Create Collaboration Diagram

3.     The Collaboration Diagram window will appear with all the objects,
actors and messages from the sequence diagram.� You may have to
rearrange the symbols on the diagram to increase readability.� But if
your sequence diagram is correct, you will not have to add any new
information to the diagram.
 
Customizing a Diagram Toolbar:
 
If you want to change the toolbar for drawing a diagram:
1)     From the Tools menu, select Options
2)     Select the Toolbar tab
3)     Select the toolbar you want to change:
Class Diagram: UML
Use Case Diagram
4)     A Customize Toolbar window will appear, allowing you to add or
remove icons.
 
Managing the Team Project directory:
 
1)     Files you want to share with your team members should be saved in your
team project directory.
2)     Check that files you have created in the team directory have the correct
permissions to give your team members access. (ls �al)
3)     To change the file permissions to give all team members read, write and
execute access use the command:
chmod g+rwx filename
4)     For more information on UNIX file permissions, see the link to �File
Permissions� under Team Project on the class home page.

You might also like