Rational rose 2007

41
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 )

Transcript of Rational rose 2007

Page 1: Rational rose 2007

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 )

Page 2: Rational rose 2007

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.

Page 3: Rational rose 2007

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

.

Page 4: Rational rose 2007

Rotional Rose 4

II.

Rational Rose

.

o .

o 93.

o .

o .

o .

o .

o .

o .

o .

o

o

:

o

o

o

o

o

o

Page 5: Rational rose 2007

Rotional Rose 5

III.

1. :

IBM-Rational Rose-Enterprise v7.0,

:

.exe trong IBM-Rational Rose-Enterprise v7:

Page 6: Rational rose 2007

Rotional Rose 6

IBM-Rational Rose-Enterprise Edition:

:

Page 7: Rational rose 2007

Rotional Rose 7

Decktop Installation from CD image -> Next:

:

Page 8: Rational rose 2007

Rotional Rose 8

B7: Application Anti-virut -

> :

- :

Page 9: Rational rose 2007

Rotional Rose 9

:

:

Page 10: Rational rose 2007

Rotional Rose 10

Import a Rational License File - :

- license.upb -

Import ):

Page 11: Rational rose 2007

Rotional Rose 11

Finish -> :

Page 12: Rational rose 2007

Rotional Rose 12

2. :

[Start] Menu ->All Program IBM Rational /IBM Rational Rose

Enterprise Edition Rational Rose.

Create New Model .

Page 13: Rational rose 2007

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

Page 14: Rational rose 2007

Rotional Rose 14

Page 15: Rational rose 2007

Rotional Rose 15

d. [Browser]:

o .

o

trong t .

o :

)

.

.

nh.

.

.

……

Page 16: Rational rose 2007

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

Page 17: Rational rose 2007

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

Page 18: Rational rose 2007

Rotional Rose 18

Deloyment View:

Deloyment View:

Processes

Processors

Connectors

Devices

Deployment Diagrams

Page 19: Rational rose 2007

Rotional Rose 19

o

.

o

.

e. Documentation[ Documentation Window ]:

.

o

Documentation

.

o

Documentation

.

f. [ Log Window ]: khi

.

g. [ Diagram Window ]

.

h. [Toolbox]

.

Page 20: Rational rose 2007

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 ).

Page 21: Rational rose 2007

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 .

Page 22: Rational rose 2007

Rotional Rose 22

d.

:

:

o

.

o

:

-

.

:

o

o :

-> Line Color

đơn

o :

-

.

Page 23: Rational rose 2007

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

.

:

Page 24: Rational rose 2007

Rotional Rose 24

3.

- (Package

.

:

4. : .

:

5. :

(Dependence

:

Page 25: Rational rose 2007

Rotional Rose 25

(Association

:

(Generalization

:

(Realization

.

:

Page 26: Rational rose 2007

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

Page 27: Rational rose 2007

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

Page 28: Rational rose 2007

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)

Page 29: Rational rose 2007

Rotional Rose 29

o UC UC

.

o :

Package

UC

o UC Ctrl + D

.

3.

Page 30: Rational rose 2007

Rotional Rose 30

II. Activity Diagram ( )

1.

.

:

o .

o .

o

.

2.

a. (Activity

.

:

b. (Synchronisation bar

.

-

.

c. (Ruard Condition):

.

Page 31: Rational rose 2007

Rotional Rose 31

d. (Swimlane):

.

e.

-

.

- .

3.

Page 32: Rational rose 2007

Rotional Rose 32

III. Class Diagram )

1.

.

.

:

o

o

o

2.

a. (Class

o

o (Attribute)

o (Operation)

:

o .

o .

o .

o

Page 33: Rational rose 2007

Rotional Rose 33

b. (Stereotype

o :

:

:

c. Package

o .

:

3.

Page 34: Rational rose 2007

Rotional Rose 34

IV. Sequence Diagram ( )

1.

.

.

, m

2.

Page 35: Rational rose 2007

Rotional Rose 35

V. State Diagram( )

1.

(State

(Class Class.

).

:

o Use Case:

Use

Case

o

.

2.

a. (State)

-

(Action)

:

b.

- Transition

State State .

Page 36: Rational rose 2007

Rotional Rose 36

- Transition

.

c.

-

o (Start State

:

o (Stop State

:

VI. Component Diagram )

1.

.

.

Page 37: Rational rose 2007

Rotional Rose 37

2.

o

Component:

.

Subprogram Specification Body

.

Main program:

.

Page 38: Rational rose 2007

Rotional Rose 38

:

.

o .... ):

:

.

VII. Deployment Diagram ( )

1.

.

Deployment View

th .

2.

(Processpr) (Sever (Workstation).....

:

Page 39: Rational rose 2007

Rotional Rose 39

.

:

.

Page 40: Rational rose 2007

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

Page 41: Rational rose 2007

Rotional Rose 41

Actor Use Case .

o Unidirectional Association trên thanh Toolbar

o

o :

“GiangVien” -> “XoaSinhVien”

“GiangVien” -> “CapNhatSinhVien”

“GiangVien” -> “TiemSinhVien”

II.

III.