Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (81.06 KB, 7 trang )
<span class='text_page_counter'>(1)</span><div class='page_container' data-page=1></div>
<span class='text_page_counter'>(2)</span><div class='page_container' data-page=2>
2
<i><b>Interaction diagrams:</b></i> set of objects and their relationships
including messages that may be dispatched among them
• <i><b>Sequence diagrams:</b></i> time ordering of messages
• <i><b>Collaboration diagrams:</b></i> structural organization of
objects that send and receive messages
<i><b>Activity diagram:</b></i> flow chart showing flow of control from
activity to activity
3
Client Servers
domain
name
TCP
4
call
return
send
create
destroy
returnCopy(c)
okToBorrow() <i>local</i>
status
notifyReturn(b) <i>asynchronous </i>
<i>signal</i>
<<create>>
5
Copy
LibraryMember
+borrowCopy()
+returnCopy()
1 <sub>on loan</sub> <sub>0..*</sub>
libMem:LibraryMember c:Copy
borrowCopy(c)
<i>association</i>
<i>message</i>
<i>link</i>
<i>class</i>
6
Cornellian
:MEngStudent
1 : getName()
<i>sequence numbers added to messages</i>
:PhDStudent
1.1 : name
7
BookBorrower
libMem:
LibraryMember
theCopy:Copy
theBook:Book
borrow(theCopy)
okToBorrow
borrow