Unified Modeling Language (UML)

Reference: UML Diagrams

Background

Prior to UML...

Now, with UML...

What is UML?

Not a programming language

Hooray standards!

Do We Really Need to Know All This?

Per IBM: An introduction to the Unified Modeling Language:

The most useful, standard UML diagrams are: use-case diagram, class diagram, sequence diagram, statechart diagram, activity diagram, component diagram, and deployment diagram.

Different domains use some more than others.

When to Use UML

Diagram Types

Use Case Diagram

Description

Key components

Class Diagram

Description

Multiplicity Option Cardinality
0..0 0 Collection must be empty
0..1 No instances or one instance
1..1 1 Exactly one instance
0..* * Zero or more instances
1..* At least one instance
5..5 5 Exactly 5 instances
m..n At least m but no more than n instances

Key components

Sequence Diagram

Description

What has to happen before another thing happens? Who is involved?

Key components

State Diagram

Description

Shows states of a system and how it transitions between them.

Key components

Walkthrough:

State diagram for a light with two switches - one at each end of a hallway.

Activity Diagram

Description

Key components

Hybrids

Swimlane Diagram

Custom

It’s useful to have a baseline knowledge of UML if you work with software at all. Even rough sketches can save valuable communication time.

Mix and match to suit your needs.