1. Trang chủ
  2. » Trung học cơ sở - phổ thông

Object - Oriented Design III

7 9 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 7
Dung lượng 81,06 KB

Nội dung

Activity diagram: flow chart showing flow of control from5. activity to activity.[r]

(1)(2)

2

Modeling Dynamic Aspects of Systems

Interaction diagrams: set of objects and their relationships

including messages that may be dispatched among them

Sequence diagrams: time ordering of messages

Collaboration diagrams: structural organization of

objects that send and receive messages

Activity diagram: flow chart showing flow of control from

activity to activity

(3)

3

Bouncing Ball Diagrams Example: http://www.cs.cornell.edu/

Client Servers domain

name TCP

(4)

4

Actions on Objects

call

return send create destroy

returnCopy(c)

okToBorrow() local

status

notifyReturn(b) asynchronous signal

<<create>>

(5)

5

Links

Copy LibraryMember

+borrowCopy() +returnCopy()

1 on loan 0 *

libMem:LibraryMember c:Copy

borrowCopy(c)

association

message

link class

(6)

6

Program

Cornellian

:MEngStudent

1 : getName()

sequence numbers added to messages

:PhDStudent 1.1 : name

(7)

7

Sequence Diagram: Borrow copy of a Book

BookBorrower

libMem: LibraryMember

theCopy:Copy

theBook:Book

borrow(theCopy)

okToBorrow borrow

Ngày đăng: 26/02/2021, 10:37

w