Object-Oriented Programming

Sequence Diagrams

Michael L. Collard, Ph.D.

Department of Computer Science, The University of Akron

Modeling so far…

  • State Chart - or state diagram for modeling complex state
  • Structure Chart - for modeling the structure of the algorithmic decomposition of the program

Sequence Diagram

  • UML diagram
  • Consists of participants, typically object or sections of code
  • Shows what happens during the lifetime of the participant
  • Expresses a particular scenario, with multiple scenarios possible
  • Allows explicit modeling of behavior
  • Allows expression of flow of control

Drawing Sequence Diagrams

  • Could use software diagram drawing tools
  • Could write on paper
  • We will use SequenceDiagram.org
  • Uses a specification language to express the concepts and then draws it

Drawing Language