View
334
Download
2
Category
Preview:
Citation preview
Rotional Rose 1
: Trang
I. ?
II.
III.
1.
2.
3.
IV.
1.
2.
3.
4.
5.
trong Rational Rose
I. Use Case Diagram )
1.
2.
II. Activity Diagram )
1.
2.
III. Class Diagram )
Rotional Rose 2
1.
2.
IV. Sequence Diagram ( )
1.
2.
V. State Diagram ( )
1.
2.
VI. Component Diagram ( )
1.
2.
VII. Deployment Diagram ( )
1.
2.
VIII. Collaboration Diagram )
1.
2.
I.
1.
2.
Rotional Rose 3
I. ?
Rational Rose là một công cụ lập mô hình trực quan mạnh trợ bạn phân tích và
thiết kế các hệ thống phần mềm hướng đối tượng. Nó được dùng để lập mô hình hệ thống
trước khi bạn viết mã (Code).Dùng mô hình, bạn có thể bắt kịp những thiếu sót về thiết
kế, trong khi việc chỉnh sửa chúng vẫn chưa tốn kém.
Rational Rose
.
Mô hình Rose là bức tranh về một hệ thống từ nhiều góc nhìn khác nhau. Nó bao gồm
tất cả UML, các Actor, các Use Case, các đối tượng, các lớp, các thành
phần…. Nó mô tả chi tiết nội dung mà hệ thống sẽ gộp và cách nó sẽ làm việ
.
: Sẽ giảm bớt một số vấn đề phiền phức như : lập trình theo truyền thống thì
khi hoàn tất đề án, sau một thời gian sử dụng khách hàng yêu cầu thêm một vài chức
năng nào đó vì có cập nhật mới thì người lập trình phải xem lại toàn bộ hệ thống rồi sau
đó mới cập nhật. Điều này tốn rất nhiều thời gian.Nay nhờ có bản thiết kế thì chỉ cần xem
cập nhật đó nằm ở phần nào và chỉnh sửa, nâng cấp hệ thống. Điều đó sẽ linh hoạt và
giảm rất nhiều thời gian…
:
o Rose Modeler
.
o Rose Professional .
o Rose Enterprise
.
Rotional Rose 4
II.
Rational Rose
.
o .
o 93.
o .
o .
o .
o .
o .
o .
o .
o
o
:
o
o
o
o
o
o
Rotional Rose 5
III.
1. :
IBM-Rational Rose-Enterprise v7.0,
:
.exe trong IBM-Rational Rose-Enterprise v7:
Rotional Rose 6
IBM-Rational Rose-Enterprise Edition:
:
Rotional Rose 7
Decktop Installation from CD image -> Next:
:
Rotional Rose 8
B7: Application Anti-virut -
> :
- :
Rotional Rose 9
:
:
Rotional Rose 10
Import a Rational License File - :
- license.upb -
Import ):
Rotional Rose 11
Finish -> :
Rotional Rose 12
2. :
[Start] Menu ->All Program IBM Rational /IBM Rational Rose
Enterprise Edition Rational Rose.
Create New Model .
Rotional Rose 13
3. :
:
a. [Title Bar
Rational Rose –[untitled
Application Control Box Rose
Control menu
.
b. [Menu Bar
.
c. [Standard Toobar
:
Thanh Ti [Title Bar ]
Thanh Trinh Đơn [Menu Bar]
Thanh Cô
Tri
Toolbox
Log Window
Documention
Diagram
Rotional Rose 14
Rotional Rose 15
d. [Browser]:
o .
o
trong t .
o :
)
.
.
nh.
.
.
……
Rotional Rose 16
o :
.
Use Case View:
.
Use Case View:
Business Actors
Business Workers
Business Use Cases
Business Use Cases Diagrams
Actors
Use Cases
Use Case Diagrams
Activity Diagrams
Sequence Diagrams
Collaboration Diagrams
Packages
Rotional Rose 17
Logical View: tập trung vào cách hệ thống thực thi cách ứng xử trong các
tác vụ . Nó cung cấp bức tranh chi tiết về các mẫu hệ thống, mô tả tính tương
quan giữa các mẫu với nhau. Logical View bao gồm các lớp cụ thể cần thiết,
các sơđồ Class …
Logical View:
Classes
Class Diagrams
Sequence Diagrams
Collaboration Diagrams
Statechart Diagrams
Packages…..
Component View:
Conponent View:
Component
Conponent Diagrams
Packages
Rotional Rose 18
Deloyment View:
Deloyment View:
Processes
Processors
Connectors
Devices
Deployment Diagrams
Rotional Rose 19
o
.
o
.
e. Documentation[ Documentation Window ]:
.
o
Documentation
.
o
Documentation
.
f. [ Log Window ]: khi
.
g. [ Diagram Window ]
.
h. [Toolbox]
.
Rotional Rose 20
ô
View -> Toolbars ->Option .
o [Browers]
View
Check Check Browers
o :
View -> Toolbars
Standard
o :
View -> Toolbars
Toolbox
o Documentation (Documentation Window):
n View
Browers
Documentation.
4. Rotional Rose.
a. :
.mdl
:
o -
trên thanh công .
o
Ok
Cancel ).
Rotional Rose 21
b. :
.
:
o -
o
:
o
o -
o .
c. :
.
.
:
o -
o : model (.mdl),
petal (.prl), category (.cat), subsystem (.sub).
:
o -
o .
:
o
o -
o .
Rotional Rose 22
d.
:
:
o
.
o
:
-
.
:
o
o :
-> Line Color
đơn
o :
-
.
Rotional Rose 23
IV. Gi i thi u m t s u thông
1. c
- L p (Class
.
:
- Use case ng h th c hi n đ đ c m
.
:
- (Interface .
:
2.
- Tươ (Interaction .
:
- (State
.
:
Rotional Rose 24
3.
- (Package
.
:
4. : .
:
5. :
(Dependence
:
Rotional Rose 25
(Association
:
(Generalization
:
(Realization
.
:
Rotional Rose 26
I. Use Case Diagram ( ng)
1. (UC).
Một Use Case Diagram trình bày sự tương tác giữa hệ thống và những tác nhân bên
ngoài hệ thống UC
.
2. Use Case:
Use Case:
UC .
:
o UC :
Use Case View trong Browser
->Use Case Diagram Menu
Double-Click
o UC:
UC trên Browser
Rotional Rose 27
Delete Menu
o UC:
UC UC
UC UC Browser
o UC :
Edit ->Delete From Model Ctrl + D
UC
o UC:
Right-Click trên UC UC
Open Specification
o Importfile Use Case
Right-Click trên UC UC
Open Specification
Tab Files
Right-Click Tab Files -> Insert File
Open
UC
o UC
Right-Click trên UC UC
Open Specification
Abstract
Rotional Rose 28
(Actor):
.
:
o Actor
o Actor UC
o Actor
o Actor :
Right-Click trên Actor UC
Open Specification
o :
Generalization
UC UC
o :
UC
Ctrl + D
(Packages)
Rotional Rose 29
o UC UC
.
o :
Package
UC
o UC Ctrl + D
.
3.
Rotional Rose 30
II. Activity Diagram ( )
1.
.
:
o .
o .
o
.
2.
a. (Activity
.
:
b. (Synchronisation bar
.
-
.
c. (Ruard Condition):
.
Rotional Rose 31
d. (Swimlane):
.
e.
-
.
- .
3.
Rotional Rose 32
III. Class Diagram )
1.
Sơ
.
.
:
o
o
o
2.
a. (Class
o
o (Attribute)
o (Operation)
:
o .
o .
o .
o
Rotional Rose 33
b. (Stereotype
o :
:
:
c. Package
o .
:
3.
Rotional Rose 34
IV. Sequence Diagram ( )
1.
.
.
, m
2.
Rotional Rose 35
V. State Diagram( )
1.
(State
(Class Class.
).
:
o Use Case:
Use
Case
o
.
2.
a. (State)
-
(Action)
:
b.
- Transition
State State .
Rotional Rose 36
- Transition
.
c.
-
o (Start State
:
o (Stop State
:
VI. Component Diagram )
1.
.
.
Rotional Rose 37
2.
o
Component:
.
Subprogram Specification Body
.
Main program:
.
Rotional Rose 38
:
.
o .... ):
:
.
VII. Deployment Diagram ( )
1.
.
Deployment View
th .
2.
(Processpr) (Sever (Workstation).....
:
Rotional Rose 39
.
:
.
Rotional Rose 40
:
I.
1. :
Use Case
.
2. Tr :
Use Case View Use Case
Use Case
o Right-Click trong Use Case View ->New ->Use Case Diagram -
“QuanLySinhVien”
o Right-Click New ->Actor -
o
Right-Click trong Use Case View ->New ->Use Case -
“ThemSinhVien”
o UC “CapNhatSinhVien”, “XoaSinhVien”,
“TimSinhVien”, “KiemTraDiem”.
Actor Use Case Use Case
o Right-Click Use Case Open Specification
o Documentationnhư sau“
thêm sinh viên”
o OK
Rotional Rose 41
Actor Use Case .
o Unidirectional Association trên thanh Toolbar
o
o :
“GiangVien” -> “XoaSinhVien”
“GiangVien” -> “CapNhatSinhVien”
“GiangVien” -> “TiemSinhVien”
II.
III.
Recommended