Use Case Diagrams and Scenarios
20 Questions
0 Views

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

    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</p> Signup and view all the answers

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

    <p>False</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</p> Signup and view all the answers

    Associations among actors are typically shown in use case diagrams.

    <p>False</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</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</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</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

    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

    Description

    This quiz focuses on use case diagrams and their role in capturing scenarios within system design. It explores the identification of actors, use cases, and the relationships in a problem statement. Prepare to test your understanding of how these UML diagrams contribute to system functionality.

    More Like This

    Use Quizgecko on...
    Browser
    Browser