100% found this document useful (1 vote)
883 views12 pages

Familiarization With Rational Rose

This document provides instructions for summarizing the key features and functionality of the Rational Rose modeling software. It describes how to create and work with various UML diagrams like use case diagrams, activity diagrams, and class diagrams. It also explains how to navigate the Rational Rose interface and save models in different formats.
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
100% found this document useful (1 vote)
883 views12 pages

Familiarization With Rational Rose

This document provides instructions for summarizing the key features and functionality of the Rational Rose modeling software. It describes how to create and work with various UML diagrams like use case diagrams, activity diagrams, and class diagrams. It also explains how to navigate the Rational Rose interface and save models in different formats.
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/ 12

Familiarization of Rational Rose Environment

Objective:
 To learn how to work with Rational Rose Enterprise Edition Software
Website Reference:
 Rational, the Software Development Company www.rational.com
Rational Rose:
• ROSE = Rational Object Oriented Software Engineering
• Rational Rose is a set of visual modeling tools for development of object oriented
software.
• Rose uses the UML to provide graphical methods for non-programmers wanting to model
business processes as well as programmers modeling application logic.
• Facilitates use of the Unified Modeling Language (UML), Component Object Modeling
(COM), Object Modeling Technique (OMT), and Booch ‘93 method for visual modeling.
Running Rational Rose
Find the icon for Rational Rose Enterprise Edition in the Program menu and click on it to open
it. This will load the Rational Rose software, giving you the opening screen, from here you can
select a new model or an existing model.
Saving the Diagram
When you have finished your diagram, click on File/Save from the menu bar. Make sure that you
are saving it to the correct folder.
Saving in various formats:
If you want to save a Rational Rose model as a different format, you may select any of the
following options from the Save As Type list in the
Save Model To dialog box:
• Models *.mdl (the current version of Rose)
• Petal *.ptl
• Rose 6.1/6.5 Model
• Rose 4.5/6.5 Model
• Rose 4.0 Model
• Rose 3.0 Model

1
AddIn Manager:
Extending Rational Rose
• Allows you to quickly and accurately customize Rational Rose environment depending
on development needs.
• Can install language (for example, Visual Basic, Visual Java, etc.) and non- language (for
example Microsoft Project) tools while in Rational Rose.
Add-Ins can install:
• Menus (.mnu file)
• Help files (.hlp file)
• Contents tab file (.cnt file)
• Properties (.pty file)
• Executables (.exe)
• Script files (.ebs script source file and .ebx compiled script file)
• OLE servers (.dll file)
Deleting in Rational Rose:
• Shallow Delete
• Click Edit > Delete
• Press CTRL + X
• Press the DELETE key
Note: If you perform a shallow delete on an element without a name,
Rational Rose will delete the model element completely out of the model.
• Deep Delete
• Click Edit > Delete from Model
• Press CTRL + D
• Right-click on an element in the browser and then select Delete
• from the shortcut menu

2
Running Rational Rose
When starting rational rose this screen is
displayed, click on cancel (unless you have
already started the diagram in which case click
on recent or existing and select the required
project).

The screen should now look like this:

Windows in Rational Rose:

3
4
Exploring Options of Rational Rose for modeling:
Actors and Use Cases
Creating Actors
1. Right click on the Use Case View package in the browser to make the shortcut menu
visible.
2. Select the New:Actor menu option. A new actor called New Class is placed in the
browser.
3. With the actor called New Class selected, enter the desired name of the actor.
Creating Use Cases
1. Right click on the Use Case View in the browser to make the shortcut menu visible.
2. Select the New:Use Case menu option. A new unnamed use case is placed in the
browser.
3. With the use case selected, enter the desired name of the use case.
Creating the Main Use Case Diagram
1. Double click on the Main diagram in the Use Case View in the browser to open the
diagram.
2. Click to select an actor in the browser and drag the actor onto the diagram.
3. Repeat step 2 for each additional actor needed in the diagram.
4. Click to select a use case in the browser and drag the use case onto the diagram.
5. Repeat step 4 for each additional use case needed in the diagram.
Note: Actors and use cases may also be created directly on a use case diagram by using the
toolbar.
Creating Communicate-Associations
1. Click to select the Association icon or the Unidirectional Association icon from the
diagram toolbar.
Note: If the Association icon is not present on the toolbar, it may be added by right clicking on
the toolbar, selecting the Customize menu choice from the shortcut menu, and adding the icon to
the toolbar.
2. Click on an actor initiating a communication and drag the association line to the desired
use case.
Creating Include Relationships
1. Click to select the Dependency icon from the toolbar.
2. Click on the base use case and drag the Dependency icon to the used use case.
3. Double click on the dependency arrow to make the Specification visible.

5
4. Click the arrow in the Stereotype field to make the drop-down menu visible, and select
include.
5. Click the OK button to close the Specification.
Creating Extend Relationships
1. Click to select the Dependency icon from the toolbar.
2. Click on the use case containing the extended functionality and drag the Dependency
icon to the base use case.
3. Double click on the dependency arrow to make the Specification visible.
4. Click the arrow in the Stereotype field to make the drop-down menu visible, and select
extend.
5. Click the OK button to close the Specification.
Creating Additional Use Case Diagrams
1. Right click on the Use Case View in the browser to make the shortcut menu visible.
2. Select the New:Use Case Diagram menu option.
3. While the use case diagram is selected, enter the name of the actor.
4. Open the diagram and add actors, use cases and interactions to the diagram as needed.
Activity Diagrams
Creating Activity Diagrams
1. Right click on the Use Case View in the browser to make the shortcut menu visible.
2. Select the New:Activity Diagram menu choice. This will add an activity diagram called
NewDiagram to the browser.
3. While the new diagram is still selected, enter the name of the diagram.
4. Double click on the activity diagram in the browser to open the diagram.
Creating Activities
1. Click to select the Activity icon from the toolbar.
2. Click on the activity diagram window to place the activity.
3. While the activity is still selected, enter the name of the activity.
Creating Transitions
1. Click to select the state transition icon from the toolbar.
2. Click on the originating activity and drag the transition arrow to the successor activity.
Creating Decision Points
1. Click to select the Decision icon from the toolbar.
2. Click on the activity diagram window to place the decision.
3. While the decision is still selected, enter the name of the decision.

6
4. Click to select the Transition icon on the toolbar.
5. Click on the originating activity and drag the transition to the decision icon.
Creating Guarded Transitions
1. Click to select the State Transition icon from the toolbar.
2. Click on the decision and drag the transition to the successor activity
Note: Rose may place the transition on top of an existing transition. To separate the transition,
select the transition and drag it onto the activity diagram window.
3. Double click on the transition arrow to make the Specification visible.
4. Select the Detail tab.
5. Enter the guard condition in the Guard Condition field.
6. Click the OK button to close the Specification.
Creating Synchronization Bars
1. Click to select the Horizontal Synchronization or the Vertical Synchronization icon from
the toolbar.
2. Click on the activity diagram window to place the synchronization bar.
3. Click to select the State Transition icon on the toolbar and add any needed incoming and
outgoing transitions to the synchronization bar.
Creating Swimlanes
1. Click to select the Swimlane icon from the toolbar.
2. Click on the activity diagram window to place the swimlane. This will add a swimlane
called NewSwimlane to the diagram.
3. Double click on the NewSwimlane (the words) to open the Specification.
4. Enter the name of the swimlane in the Name field.
5. Click the OK button to close the Specification.
6. To resize the swimlane, click on the swimlane border and drag the swimlane to the
desired location.
7. Drag all needed activities and transitions into the swimlane. (Note; You may also create
new activities and transitions in the swimlane.)
Creating Starting and Ending Activities
1. Click to select the Start State or the End State icon from the toolbar.
2. Click on the activity diagram window to place the start or end state.
3. If you added a start state, click on the State Transition icon, click on the start state, and
drag the transition to the first activity in the workflow.

7
4. If you added an end state, click on the State Transition icon, click on the successor
activity, and drag the transition to the end state.
Classes and Packages
Creating Classes
1. Right click to select the Logical View in the browser.
2. Select the New:Class menu choice. A class called NewClass is placed in the browser.
3. While the new class is still selected, enter the name of the class
Creating Attributes
1. Right click to select the class in the browser and make the pop-up menu visible.
2. Select the New:Attribute menu choice. This will create an attribute called Name in the
browser.
3. With the new attribute selected, enter the desired name.
Creating Operations
1. Right click to select the class in the browser and make the pop-up menu visible.
2. Select the New:Operation menu choice. This will create an operation called opname in
the browser.
3. With the new operation selected, enter the desired name.
Creating Packages
1. Right click to select the Logical View in the browser.
2. Select the New:Package menu choice.
3. While the package is still selected, enter the name of the package.
Creating Inheritance
1. Open the class diagram that will display the inheritance hierarchy.
2. Click to select the Class icon from the toolbar and click on the open class diagram to
draw the class.
3. With the class still selected, enter the name of the class.
Note: The class could also be created in the browser and added to the open class diagram.
4. Click to select the Generalization icon on the toolbar.
5. Click on a subclass and drag the generalization line to the superclass.
6. Repeat step 5 for each additional subclass.
Relocating Classes
1. Click to select the class in the browser.
2. Drag the class to the desired package.
3. Repeat the steps for each class that is to be relocated.

8
Sequence and Collaboration Diagrams
Creating a Sequence Diagram
1. Right click on the Logical View and select the New: Sequence Diagram. An unnamed
sequence diagram is added to the browser.
2. With the new sequence diagram selected, enter the name of the sequence diagram.
Creating Objects and Messages in Sequence Diagrams
1. Double click on the sequence diagram in the browser to open the diagram.
2. Click to select the actor in the browser.
3. Drag the actor onto the sequence diagram.
4. Click to select the Object icon from the toolbar.
5. Click on the sequence diagram window to place the object.
6. While the object is still selected, enter the name of the object.
Note: You may also drag existing classes onto the sequence diagram window.
7. Repeat the preceding steps for each object and actor in the scenario.
8. Click to select the Object Message icon from the toolbar.
9. Click on the actor or object (or class) sending the message and drag the message line to
the actor or object receiving the message.
10. While the message line is still selected, enter the name of the message.
11. Repeat steps 7 through 9 for each message in the scenario.
Creating Collaboration Diagrams from Sequence Diagrams
1. Double click on the sequence diagram in the browser to open the diagram.
2. Press F5 key.
3. Rearrange the objects and messages on the diagram as needed.
Relationships
Creating an Association Relationship
1. Click to select the Association icon from the toolbar. The association icon may be added
to the toolbar by right clicking on the toolbar and selecting the Customize menu
command.
2. Click on one of the associated classes in a class diagram.
3. Drag the association line to the other associated class.
Creating an Aggregation Relationship
1. Select the Aggregation icon from the toolbar. The Aggregation icon may be added to the
toolbar by right clicking on the toolbar and selecting the Customize menu command.
2. Click on the class playing the role of the “whole” in a class diagram and drag the
aggregation line to the class playing the role of the “part”.

9
Creating Multiplicity
1. Double click on the relationship line to make the Specification visible.
2. Select the Detail tab for the role being modified.
3. Enter the desired multiplicity in the Cardinality field.
4. Click the OK button to close the Specification.
Creating Package Relationships
1. Select the dependency relationship icon from the toolbar.
2. Click on the client package and drag the arrow to the supplier package.
Statechart Diagrams
Creating Statechart Diagrams
1. Right click on Logical View and select the New Statechart Diagram menu choice. This
will add a state diagram called NewDiagram to the browser.
2. While the diagram is still selected, enter the name of the diagram.
3. To open the diagram, click the + to expand the class in the browser, click the + to expand
the State/Activity Model in the browser and double click on the statechart diagram in the
browser.
Creating States
1. Click to select the State icon from the toolbar.
2. Click to place the state on the statechart diagram.
3. With the state still selected, enter the name of the state.
Creating State Transitions
1. Click to select the State Transition icon from the toolbar.
2. Click to select the originating state on the statechart diagram.
3. Drag the state transition to the successor state.
4. If the state transition is a named transition, enter the name while the state transition arrow
is still selected.
Creating Start States
1. Click to select the Start icon from the toolbar.
2. Click on the statechart diagram to draw the Start icon.
3. Click to select the State Transition icon from the toolbar.
4. Click on the Start icon and drag the arrow to the desired state.
Creating Stop States
1. Select the Stop icon from the toolbar.
2. Click on the statechart diagram to draw the Stop icon.
3. Select the State Transition icon from the bar.
4. Click on the state and drag the arrow to the Stop icon.
10
Adding State Transition Details
1. Right click on the state transition arrow to make the shortcut menu visible.
2. Select the Open Specification menu choice.
3. Select the Detail tab.
4. Enter the action, guard and/or the event to be sent.
5. Click the OK button to close the specification.
Creating Entry Actions, Exit Actions and Activities
1. Right click on the state to make the shortcut menu visible.
2. Select the Open Specification menu choice.
3. Select the Actions tab.
4. Right click in the Action field to make the shortcut menu visible.
5. Select the Insert menu choice. This will create an action called entry.
6. Double click on entry to make the Action Specification visible.
7. Select when the action should occur: on entry, on exit , do or on event.
8. Enter the action or event information.
9. Select the type: action or send event.
10. Enter the action name and event information (if needed).
11. Click the OK button to close the Action Specification.
12. Click the OK button to close the State Specification.
Component and Deployment Diagrams
The Main Component Diagram
1. Double click on the Main Diagram under the Component View package on the browser
to open the diagram.
2. Click to select a component/package and drag the component/package onto the diagram.
3. Repeat step 2 for each additional component/package.
4. Dependency relationships are added by selecting the Dependency icon from the toolbar,
clicking on the component/package representing the client and dragging the arrow to the
component/package representing the supplier.
Creating Components
1. Open a component diagram.
2. Click to select the Component icon on the toolbar.
3. Click on the diagram to place the component. This will also add the component to the
browser.
4. While the component is still selected, enter the name of the component.

11
Creating the Deployment Diagram
1. Rose automatically creates the deployment diagram. To open the diagram, double click
on the Deployment Diagram on the browser.
2. To create a node, click to select the processor icon and click on the diagram to place the
node.
3. With the node still selected, enter the name of the node.
4. To create a connection between nodes, click to select the Connection icon from the tool
bar, click on one node on the deployment diagram and drag the connections to the other
node.

12

You might also like