Use Case Diagram

How do we visualize a system’s use cases?

Purpose

A use case diagram shows the relationship among actors and use cases within a system.

Definition

A use case diagram is a graph with

Examples

telephonecatalog.gif

telephonecatalog2.gif

Terminology

Use Case

A coherent unit of functionality provided by a system or class as manifested by sequences of messages exchanged among the system and one or more external interactors together with actions performed by the system.

Actor

Role of an object or objects outside the system that interacts directly with the system. (A Use Case Diagram shows actors as classes, not objects; in fact an actor is just a class with the stereotype «actor».)

Relationships

Communicates Extends Uses

communicates.gif

extends.gif

uses.gif

A participates in U U is a kind of variation on V (V might be the "normal" behavior and U is done in unusual or exceptional circumstances). An instance of U will include all of the behavior specified by V.