Object - Oriented Design III

7 9 0
Object - Oriented Design III

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

Thông tin tài liệu

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

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan