Presentation is loading. Please wait.

Presentation is loading. Please wait.

L28-S1 Interaction Diagrams 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room.

Similar presentations


Presentation on theme: "L28-S1 Interaction Diagrams 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room."— Presentation transcript:

1 L28-S1 Interaction Diagrams 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José State University One Washington Square San José, CA 95192-0180 http://www.engr.sjsu.edu/~fayad

2 L28-S2 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad 2 Lesson 28: Interaction Diagrams

3 L28-S3 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad Lesson Objectives 3 Understand how to create interaction diagrams Learn the syntax of interaction diagrams Explore interaction diagrams’ examples

4 L28-S4 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad An interaction diagram shows an interaction, consisting of a set of objects and their relationships, including the messages that may be dispatched among them –Sequence diagram –Collaboration diagram 4 Interaction Diagrams (1)

5 L28-S5 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad A sequence diagram emphasizes the time ordering of messages A collaboration diagram emphasizes the structural organization of the objects that send and receive messages 5 Interaction Diagrams (2)

6 L28-S6 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad To visualize, specify, construct, and document the dynamics of a particular society of objects To model one particular flow of control of a use case 6 Uses of Interaction Diagrams

7 L28-S7 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad Objects Links Messages Notes Constraints 7 Contents of Interaction Diagrams

8 L28-S8 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad Place objects that participate in the interaction as the vertices in a graph Render the links that connect these objects as the arcs of this graph Adorn these links with the messages that objects send and receive 8 Drawing Collaboration Diagrams

9 L28-S9 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad Use sequence diagrams to model flows of control by time ordering –Do a better job of visualizing simple iteration and branching Use collaboration diagrams to model flows of control by organization –Do a better job of visualizing complex iteration and branching and of visualizing multiple concurrent flows of control 9 Common Uses

10 L28-S10 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad A collaboration diagram displays object interactions organized around objects and their links to one another 10 Interaction Diagrams (1)

11 L28-S11 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad Don’t show the lifeline of an object explicitly –Although one can show both create and destroy messages Don’t show the focus of control explicitly –Although each message’s sequence number can indicate nesting 11 Interaction Diagrams (2)

12 L28-S12 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad Two features that distinguish them from sequence diagrams –Path To indicate how one object is linked to another –Sequence number To indicate the time order of a message 12 Interaction Diagrams (3)

13 L28-S13 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad 13 Interaction Diagram: Example (1)

14 L28-S14 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad 14 Interaction Diagram: Example (2)

15 L28-S15 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad 15 Interaction Diagram: Example (3)

16 L28-S16 Interaction Diagrams 2003 SJSU – CmpE --- M.E. Fayad T/F a.Use collaboration diagrams to model flows of control by organization b.A collaboration diagram displays object interactions organized around objects and their links to one another 16 Discussion Questions


Download ppt "L28-S1 Interaction Diagrams 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room."

Similar presentations


Ads by Google