Title: Rational Rose
1Rational Rose
2Overview
3Designing Complex Systems
- Three big steps in designing complex systems
- Abstract the system by building models
- Verify the model to satisfy requirements
- Transform models into implementation
4What Rational Rose does?
- Build visual models to analyze and design
components - The models acts as a blueprint of the software
system - Uses the UML Standard
5Features
6Types of Diagrams
- Use Case Diagram
- Class Diagram
- Data Model Diagram
- State Machine Diagram
- Interaction Diagram
- Component Diagram
- Deployment Diagram
7Use Case Diagram
- A high-level view of how a system is used
- Specify the behavior of a system as implemented
8Use Case Diagram
- Use Case
- A sequence of events performed by the system
- Actor
- A system user who interact with the system
9Creating a Use Case Diagram
10Rational Software
Programs
Rational Rose Enterprise Edition
Start Menu
11Click Cancel
12Expand Use Case View
13Right-click Use Case View
14Choose New -gt Actor
15Type in LibraryUser
16Right-click Use Case View
17Choose New -gt Use Case
18Name it Check Book Availability
19Do the same to add a Librarian Actor, Use
Cases Checkout Book Renew Book Reserve
Book Re-shelf Book Return Book
20Right-click the Main Use Case Diagram, Click
Rename, and type in Library Transactions
21Double-click Library Transaction to bring up the
Use Case Diagram
22Maximize the Use Case Diagram
23Drag LibraryUser and Librarian to the Use Case
Diagram
24Likewise, drag all the Use Cases to the
diagram one by one
25Click the Unidirectional Association arrow (solid
line arrow)
26Click and hold the mouse click on LibraryUser,
drag it over to Return Book, then release the
mouse
27Return Book Use Case is then associated to
Library User. Do the same to create Association
arrows as shown in the diagram.
28Click the Dependency arrow (dotted line arrow)
29Drag from Reserve Book to Check Book Availability
30Right click the Dependency arrow
31Choose Open Specification
32Open the drop down box
33Choose Include
34Then click OK
35Drag ltltincludegtgt above the arrow
36(No Transcript)
37Class Diagram
- Contain icons representing classes, interfaces
and their relationship
38Class Diagram
- Class name
- Attributes
- Operations
39Creating a Class Diagram
40Right click Use Case View
41Choose New -gt Class Diagram
42Name it LibraryClasses
43Double-click LibraryClasses and maximize the
diagram
44Right click Use Case View
45Choose New -gt Class
46Name it Book
47Do the same and create these classes
Patron Student Faculty
48Drag them into the class diagram
49(No Transcript)
50Right-click Book, Select New Attribute
51Name it Title
52Add the remaining attribute Author ISBN Publisher
Status
53Right-click Book, Select New Operation
54Name it isAvailable
55Enter the rest of the attributes and operations
as shown in the diagram
56Click the Generalization arrow
57Drag it from Student to Patron
58Do the same for Faculty
59(No Transcript)
60Drag the arrow head of the Faculty class arrow of
the Student class
61We have built an inheritance tree