Software System EngineeringSlide 2Slide 3Drawing Sequence DiagramsCommon UsesSequence DiagramsSyntax of Sequence DiagramSequence Diagram: Example (1)Sequence Diagram: Example (2)Sequence Diagram: Example (3)Sequence Diagram: Example (4)Sequence Diagram: Example (5)Discussion Questions© M.E. Fayad 2000-2006SJSU -- CmpESoftware System Engineering Dr. M.E. Fayad, ProfessorComputer Engineering Department, Room #283I College of EngineeringSan José State UniversityOne Washington SquareSan José, CA 95192-0180 http://www.engr.sjsu.edu/~fayad© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S2 Sequence Diagrams2Lesson 3-6b:Sequence Diagrams© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S3 Sequence Diagrams Lesson ObjectivesObjectives3 Understand how to generate sequence diagrams Learn the syntax of sequence diagram Explore examples of sequence diagrams© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S4 Sequence DiagramsPlace objects that participate in the interaction at the top of the diagram, across the X-axis–Place the object that initiates the interaction at the left, and increasingly more subordinate objects to the rightPlace messages the objects send and receive along the Y-axis, in order of increasing time from top to bottom4Drawing Sequence Diagrams© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S5 Sequence DiagramsUse sequence diagrams to model flows of control by time ordering–Do a better job of visualizing simple iteration and branchingUse 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 control5Common Uses© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S6 Sequence DiagramsSequence diagrams have two features:–Object lifeline•Vertical dashed line that represents the existence of an object over a period of time–Focus of control•A tall, thin rectangle that shows the period of time during which an object is performing an action, either directly or through a subordinate procedure6Sequence Diagrams© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S7 Sequence Diagrams7Syntax of Sequence Diagram© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S8 Sequence Diagrams8Sequence Diagram: Example (1)© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S9 Sequence Diagrams9Sequence Diagram: Example (2)© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S10 Sequence Diagrams10Sequence Diagram: Example (3)© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S11 Sequence Diagrams11 Sequence Diagram: Example (4)© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S12 Sequence Diagrams12Sequence Diagram: Example (5)© M.E. Fayad 2000-2006SJSU – CmpE M.E. Fayad L3-6b-S13 Sequence DiagramsT/F:1. The participants in the sequence diagrams are classes and components2. The sequences in the sequence diagram are connected.3. Sequence diagram is an event-trace diagram4. You can generate a sequence diagram / use case.5. A sequence diagram models flows of control by time ordering13 Discussion
View Full Document