1 / 16

Software System Engineering

Software System Engineering. 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. Lesson 3-6c: Interaction Diagrams. 2. Lesson Objectives.

Download Presentation

Software System Engineering

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Software System Engineering 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 SJSU -- CmpE

  2. Lesson 3-6c: Interaction Diagrams 2 SJSU – CmpE M.E. Fayad

  3. Lesson Objectives • Understand how to create interaction diagrams • Learn the syntax of interaction diagrams • Explore interaction diagrams’ examples 3 SJSU – CmpE M.E. Fayad

  4. 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 Interaction Diagrams (1) 4 SJSU – CmpE M.E. Fayad

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

  6. 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 Uses of Interaction Diagrams 6 SJSU – CmpE M.E. Fayad

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

  8. 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 Drawing Collaboration Diagrams 8 SJSU – CmpE M.E. Fayad

  9. 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 Common Uses 9 SJSU – CmpE M.E. Fayad

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

  11. 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 Interaction Diagrams (2) 11 SJSU – CmpE M.E. Fayad

  12. 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 Interaction Diagrams (3) 12 SJSU – CmpE M.E. Fayad

  13. Interaction Diagram: Example (1) 13 SJSU – CmpE M.E. Fayad

  14. Interaction Diagram: Example (2) 14 SJSU – CmpE M.E. Fayad

  15. Interaction Diagram: Example (3) 15 SJSU – CmpE M.E. Fayad

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

More Related