The Dynamic Model: Sequence and State Chart Diagrams

Dynamic Model

UML Sequence Diagrams

When are they used?

Notation

General guidelines for sequence diagrams

Examples

Here's a sequence diagram that represents a main flow through the Leave A Message use case (from the voice mail example in assignment #3).

Some other sequence diagrams can be found in the textbook:


UML State Chart diagrams

Purpose

Used to describe a sequence of state transitions in an object in response to events

Notation

Examples

Here is a statechart example from Java. It illustrates the states of a thread object:

Explanation of states in this example:

Some other statechart examples from the textbook

Some old powerpoint slides with diagram examples (statecharts and sequence diagrams)