UML Use Case Diagram Flashcards
Use Case Diagram:
What is a Use Case?
A formal way of representing how a system interacts with its environment.
- Illustrates activities performed by users of the system
- Scenario-based technique in UML
- Emphasis on what a system does, not how
- Describes what a system does from the standpoint of an external observer
Use Case Diagrams:
Components
- Scenarios
- Actors
- Actions (use case)
- Communications
- Relations
Use Case Diagrams:
What is a Scenario?
An example of what happens when someone interacts with the system.
Should describe:
- The starting situation/state of the system
- The normal flow of events
- Possible ways an interaction can go wrong
- Information about other concurrent activities
- The state of the system when the scenario finishes
Use Case Diagrams:
Relations
Basic Description
Relations are a technique for categorizing the various Actors and Use Cases.
Represented as lines ending with arrows.
Three Types:
- Generalization
- Extend
- Include
Use Case Diagrams:
Three Types of Relations
Generalization
Extend
Include
Use Case Diagrams:
Relations:
Generalization
Indicates that something is a specialized type.
Can apply to Actions or Actors.
Represented by a forked line, with a white arrow pointing to the more general thing. Similar to inheritance.
Examples:
- Pressing the ‘Esc’ key is a a specialized version of the more general action of pressing a key
- A “New Patient” Actor is a specialized version of the more general “Patient” Actor
Use Case Diagrams:
Relations:
Extend
Used when a case conditionally adds steps to another first class use case.
Represented with a plain arrow from one case to the other, marked with <>
Use Case Diagrams:
Relations:
Include
Used to extract use case “fragments”, which are duplicated in multiple use cases.
Represented with a white arrow pointing to the Fragment that will be included, with the line marked with
<>
Use Case Diagrams:
Actor
Summary
An Actor is a user or outside system, which interacts with the system being designed in order to obtain some value from that interaction.
Use Cases describe the interaction between Actors and the system itself.
Actors can be humans, machines, external systems, sensors, etc
Steps for
Designing a Use Case
Repeat for all potential use cases
- Identify the Actors
- Identify the Use Case
- Diagram the communication
- Determine the System Boundary