Use Case Diagrams
Use Case Diagrams
What is an Actor?
• A user or outside system that interacts
with the system being designed in order
to obtain some value from that
interaction
Use Cases describe scenarios that describe
the interaction between users of the system
(the actor) and the system itself.
tick figures. Use cases are ovals. Communications are lines that link actors
Actors are stick figures. Use cases are ovals. Communications are
lines that link actors to use cases.
©Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 4 Slide
Slide 14
14
Use Case Componentss
The use case has three components.
Make
Appointment
Make
Appointment
Make
Appointment
• Generalization
• Include
• Extend
Generalization Relationship
• Represented by a line and a hollow arrow
• From child to parent
Include Relationship
• Represents the inclusion of the functionality
of one use case within another
• Arrow is drawn from the base use case to the
used use case
• Write << include >> above arrowhead line
Extend relationship
• Represents the extension of the use case
to include optional functionality
• Arrow is drawn from the extension use
case to the base use case
• Write << extend >> above arrowhead line
Pro:
• Reduces redundancy in use cases
• Reduces complexity within a use case
Con
• May introduce complexity to use case
diagram