Use Case Diagrams and Scenarios

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What does a use case diagram primarily illustrate?

  • Workflow processes in a business
  • The layout of the system's hardware components
  • The network architecture of the system
  • A graphical overview of the functionality provided by the system (correct)

An actor in a use case diagram can only be a human user.

False (B)

What is the role of a primary actor in a use case scenario?

To fulfill their goal by availing some service from the system.

In an ATM use case, a customer is an example of a ______ actor.

<p>human</p> Signup and view all the answers

Match the following terms with their definitions:

<p>Actor = An object that interacts with the system Use Case = A set of actions a system can perform Primary Actor = Principal users of the system Use Case Diagram = Graphical representation of system functionality</p> Signup and view all the answers

What is a primary actor in a use case diagram?

<p>An entity that interacts with the system to achieve a goal (A)</p> Signup and view all the answers

A use case only includes successful user interactions with the system.

<p>False (B)</p> Signup and view all the answers

What is depicted by an ellipse in a use case diagram?

<p>A use case</p> Signup and view all the answers

An actor is represented by a ______ figure in a use case diagram.

<p>stick</p> Signup and view all the answers

Match the following components of a use case diagram:

<p>Primary Actor = Initiates use cases Supporting Actor = Provides services to the system Use Case = Functionality of the system Subject = System under consideration</p> Signup and view all the answers

What is an example of a use case for an ATM?

<p>Withdraw cash (B)</p> Signup and view all the answers

Associations among actors are typically shown in use case diagrams.

<p>False (B)</p> Signup and view all the answers

What type of relationship exists among use cases that signifies mandatory inclusion?

<p>Include relationship</p> Signup and view all the answers

What notation is used to represent an include relationship in use cases?

<p>Dashed arrow with a «include» stereotype (D)</p> Signup and view all the answers

Extend relationships in use cases are used to show common behaviors shared by multiple use cases.

<p>False (B)</p> Signup and view all the answers

Define what an include relationship does in use cases.

<p>It shows common behavior shared by multiple use cases.</p> Signup and view all the answers

The __________ relationship is used to represent inheritance between use cases.

<p>generalization</p> Signup and view all the answers

Match the following use case relationships with their descriptions:

<p>Include = Shows common behavior shared by use cases Extend = Specifies variations to an existing use case Generalization = Represents inheritance between use cases Specialization = Enhances functionality of a base use case</p> Signup and view all the answers

In the example of an online bookstore, what optional action can a user specify during the 'Place Order' use case?

<p>Special shipping instructions (A)</p> Signup and view all the answers

Give an example of a generalization relationship in use cases.

<p>Drawing a rectangle from the general use case of drawing a polygon.</p> Signup and view all the answers

Flashcards

Use Case Diagram

A visual representation showing system functionality, actors, and relationships between them.

Actor

An external entity (person, device, or other system) interacting with the system to achieve a result.

Primary Actor

The main user of a system, fulfilling their goal by using its services.

Use Case

A specific action performed by the system for the benefit of an actor.

Signup and view all the flashcards

Use Case Diagram Relationship

Connections between use cases and actors showing how they work together.

Signup and view all the flashcards

Supporting Actor

Provides a service to the system, but is not the main user.

Signup and view all the flashcards

Subject

The system being described in the use case diagram.

Signup and view all the flashcards

Actor-Use Case Association

The connection between an actor and a use case, showing communication.

Signup and view all the flashcards

Use Case Relationships

Ways use cases interact, like including or extending other use cases.

Signup and view all the flashcards

ATM Example

System for withdrawing cash and performing other financial tasks.

Signup and view all the flashcards

Include Relationship

Shows common behavior shared by multiple use cases, avoiding code repetition. Like a function call in programming.

Signup and view all the flashcards

Include Relationship Example

In an email app, logging in is a shared step for sending, replying, and forwarding emails, so this is an example of Include.

Signup and view all the flashcards

Extend Relationship

Shows variations or optional steps in a use case. Handles changes when assumptions in the main use case are false.

Signup and view all the flashcards

Extend Relationship Example

In an online bookstore, special shipping instructions are optional, not in the main 'Place Order' use case; this is an Extend.

Signup and view all the flashcards

Generalization Relationship

Represents inheritance between use cases where a derived use case specializes functionality from a base use case.

Signup and view all the flashcards

Generalization Relationship Example

A 'draw polygon' use case has a specific 'draw rectangle' that inherits properties from 'draw polygon' and changes its rectangle-drawing method.

Signup and view all the flashcards

Use case relationship notations

Different types of relationships, like 'Include' represented by dashed arrows with a specific label (e.g. «include»), and 'Extend' represented by dashed arrows with a different label (e.g. «extend»).

Signup and view all the flashcards

Study Notes

Use Case Diagrams and Capturing Use Case Scenarios

  • Use case diagrams provide a common understanding for end-users, developers, and domain experts.
  • They capture basic functionality (use cases) and users (actors) within a given problem statement.
  • The lesson aims at identifying actors and use cases from a problem statement, associating use cases with relationships, and drawing use-case diagrams.

Introduction

  • Use case diagrams are a type of behavioral UML diagram.
  • They offer a graphical overview of system functionality.
  • Use cases represent actions the system performs.
  • Actors represent users or other systems interacting with the system.
  • The diagrams show dependencies among these elements.

Actor

  • An actor is an object or set of objects external to a system that interacts with it for a meaningful result.
  • Actors can be human, devices, or other systems.
  • An example includes a customer withdrawing cash from an ATM (a customer as a human actor).

Use Case Diagrams

  • Use case diagrams belong to the behavioral category of UML diagrams.
  • They display a graphical overview of a system's functionality.
  • They portray the actions (use cases) a system performs and the actors involved.
  • The diagrams show dependencies among these elements.

Use Case

  • A use case represents a system's functionality.
  • Use cases in ATM systems include cash withdrawal, checking account balance, changing a PIN, depositing cash, and transferring funds.
  • Use cases can have both successful and unsuccessful scenarios.

Actor Classification

  • Primary actors are the primary users of a system, achieving their goals using the system's services.
  • Supporting actors provide services to the system (e.g., bank representatives replenishing ATM cash).
  • Primary actors in a simple ATM case are the customers; supporting actors include bank representatives.

Use Case and Actor Associations

  • Use cases are triggered by actors.
  • Actors and use cases are connected by binary associations, indicating message passing between the two.
  • Each actor must be associated with at least one use case.
  • Each use case must be associated with at least one actor.
  • Associations between actors are generally not displayed, but a class hierarchy can be depicted.

Use Case Relationships

  • Three relationship types exist among use cases: include, extend, and generalization.

Include Relationship

  • Include relationships show shared behaviors among use cases.
  • They are analogous to functions in programming avoiding repetitive code.
  • A common use case is a login use case, included in other use cases where login is necessary.
  • The "include" relation is represented by a dashed arrow and the word <>.

Extend Relationship

  • Extend relationships show variations in use cases.
  • They describe changes to the use case when existing assumptions become false.
  • Use Cases include ATM transaction modifications or optional steps.
  • Extend is represented by a dashed arrow with the word <>.

Generalization Relationship

  • Generalization relationships represent inheritance between use cases.
  • Derived use cases specialize existing functionality.
  • Examples are use cases like draw rectangle, and draw square which are specialized from Polygon use case.

Identifying Actors and Use Cases

  • Identify actors by focusing on those who benefit from or operate the system, or interact with other systems or hardware.
  • Identify use cases by focusing on the tasks the system performs, or required functions.

Guidelines for Use Case Diagrams

  • Define the system boundary clearly.
  • Make sure actors have clear purposes.
  • Use cases should describe meaningful system actions.
  • Connect actors and use cases to avoid ambiguity/ disconnected entities.
  • Use include or extend relationships to encapsulate common behaviors.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

UML Use Case Diagrams PDF

More Like This

Use Quizgecko on...
Browser
Browser