Use Case Diagrams & Sequence Diagrams: SE3A04 - Tutorial
Use Case Diagrams & Sequence Diagrams: SE3A04 - Tutorial
Andrew LeClair
Outline
2 Sequence Diagrams
3 Questions
Example
Draw a use case diagram to represent the following system.
Over the summer holiday, university students can book college
hall accommodation online. They must specify their name,
student number, course, year, and identify three college
residences as their preferences.
The system makes an allocation of students to rooms before
the start of the term, trying, where possible, to allocate
students to a room in one of their preferred halls.
Sequence Diagrams
Definition (Sequence Diagram)
Sequence diagrams describe interactions among classes in terms
of an exchange of messages over time.
Sequence Diagrams
Class Roles
Sequence Diagrams
Activation
Sequence Diagrams
Messages
Sequence Diagrams
Lifelines
Sequence Diagrams
Destroying Objects
Sequence Diagrams
Loops
Sequence Diagrams
Example
Example
Draw a sequence diagram representing the process of making a
phone call from a cell phone.
Hint*: The objects involved include the caller, the phone network,
the receiver of the phone call, and the cell phone accounting
department.
Sequence Diagrams
Example
Questions
Questions?