Tải bản đầy đủ (.pdf) (7 trang)

Object - Oriented Design III

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


<b>Modeling Dynamic Aspects of Systems</b>



<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


</div>
<span class='text_page_counter'>(3)</span><div class='page_container' data-page=3>

3


<b>Bouncing Ball Diagrams</b>


Example: />


Client Servers
domain


name
TCP


</div>
<span class='text_page_counter'>(4)</span><div class='page_container' data-page=4>

4


<b>Actions on Objects</b>




call


return
send
create
destroy


returnCopy(c)


okToBorrow() <i>local</i>


status


notifyReturn(b) <i>asynchronous </i>
<i>signal</i>


<<create>>


</div>
<span class='text_page_counter'>(5)</span><div class='page_container' data-page=5>

5


<b>Links</b>



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>


</div>
<span class='text_page_counter'>(6)</span><div class='page_container' data-page=6>

6


<b>Program</b>



Cornellian


:MEngStudent


1 : getName()


<i>sequence numbers added to messages</i>


:PhDStudent
1.1 : name


</div>
<span class='text_page_counter'>(7)</span><div class='page_container' data-page=7>

7


<b>Sequence Diagram: Borrow copy of a </b>



<b>Book</b>



BookBorrower


libMem:
LibraryMember


theCopy:Copy


theBook:Book


borrow(theCopy)


okToBorrow
borrow


</div>

<!--links-->

Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×