{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Chap 9_Sequence Diagrams

Chap 9_Sequence Diagrams - ObjectInteraction ,McRobband...

Info icon This preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
03/12/2001 1 Object Interaction Based on Chapter 9 of Bennett, McRobb and  Farmer:  Object Oriented Systems Analysis and Design  Using UML,  (2 nd  Edition), McGraw Hill, 2002.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 In This Lecture You Will Learn: In This Lecture You Will Learn: How to develop object collaboration  from use cases How to model object collaboration using  an interaction sequence diagram How to model object collaboration using  an interaction collaboration diagram How to cross-check between interaction  diagrams and a class diagram
Image of page 2
3 Object Messaging Object Messaging :Campaign anAdvert:Advert getCost( ) Objects communicate by sending  messages Sending the message getCost() to an  Advert object, might use the following  syntax        advertCost = anAdvert.getCost()
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 UML  interaction diagram UML  interaction diagram Kinds of UML  interaction diagram Interaction sequence diagram Interaction collaboration diagram
Image of page 4
5 Interaction & Collaboration Interaction & Collaboration 'The structure of Instances playing roles in a  behavior  and  their  relationships  is  called  a  Collaboration .‘ 'An  Interaction  is  defined  in  the  context  of  a  Collaboration. It specifies the communication  patterns  between  the  roles  in  the  Collaboration.  e.g.  what  Signal  to  be  sent  or  what Operation  to  be  invoked,  as  well  as  the  roles  played  by  the  sender and the receiver, respectively.' UML (OMG, 2001)
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
6 Sequence Diagrams Sequence Diagrams Show an interaction between objects  arranged in a time sequence  Can be drawn at different levels of detail and  to meet different purposes at several stages  in the development life cycle Typically used to represent the detailed object  interaction that occurs for one use case or for  one operation
Image of page 6
7 Sequence Diagrams Sequence Diagrams Vertical dimension shows time Objects involved in interaction appear  horizontally across the page and  represented by lifelines Messages are shown by a solid  horizontal arrow The execution of an operation is shown  by an activation
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
8 Difference Difference Sequence diagram drawn during  analysis differ from those drawn during  design in two major aspects Analysis sequence diagrams normally do  not include design objects nor do they  usually specify message signatures in  detail.
Image of page 8
9 Sequence diagram Sequence diagram :Client :Campaign :Advert getName() listCampaigns() listAdverts() *getCampaign Details() Advert() *getAdvert Details() newAd:Advert addNewAdvert() Object lifeline Activation Object creation Campaign Manager
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
10 Boundary & Control Classes
Image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}