UML Use Case Diagram Flashcards

1
Q

Use Case Diagram:

What is a Use Case?

A

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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Use Case Diagrams:

Components

A
  • Scenarios
  • Actors
  • Actions (use case)
  • Communications
  • Relations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Use Case Diagrams:

What is a Scenario?

A

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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Use Case Diagrams:

Relations

Basic Description

A

Relations are a technique for categorizing the various Actors and Use Cases.

Represented as lines ending with arrows.

Three Types:

  • Generalization
  • Extend
  • Include
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Use Case Diagrams:

Three Types of Relations

A

Generalization

Extend

Include

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Use Case Diagrams:

Relations:

Generalization

A

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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Use Case Diagrams:

Relations:

Extend

A

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 <>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Use Case Diagrams:

Relations:

Include

A

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

<>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Use Case Diagrams:

Actor

Summary

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Steps for

Designing a Use Case

A

Repeat for all potential use cases

  1. Identify the Actors
  2. Identify the Use Case
  3. Diagram the communication
  4. Determine the System Boundary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly