USE case diagram
37 Questions
2 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

In use case diagrams, which type of relationship indicates that a child use case must be completed to fulfill a parent use case?

  • Generalization
  • Association
  • Inclusion (correct)
  • Extension

What is the primary purpose of using the 'include' relationship in use case modeling?

  • To define inheritance between use cases, where the child inherits from the parent.
  • To simplify complex use cases by extracting common behaviors. (correct)
  • To establish a direct link between actors and use cases.
  • To represent optional or alternative behaviors in a system.

If a library member has a fine to pay and can choose between using PayPal or a credit/debit card, which use case relationship would best model this scenario?

  • Generalization
  • Extension (correct)
  • Inclusion
  • Association

In use case generalization, what is the primary characteristic of the child use case in relation to its parent?

<p>It inherits behavior from the parent and can add to or override it. (A)</p> Signup and view all the answers

Which of the following is true regarding generalization in use case diagrams?

<p>Both actors and use cases can be generalized. (A)</p> Signup and view all the answers

Which of the following is the MOST accurate description of the primary goal of a Use Case diagram?

<p>To depict the interactions between actors and the system, aiding in understanding and communicating functional requirements. (D)</p> Signup and view all the answers

In a Use Case diagram, what does the 'system boundary' represent?

<p>The delineation between the internal components of the use cases and the external actors interacting with them. (C)</p> Signup and view all the answers

Which of the following BEST describes how to identify potential actors in a Use Case diagram?

<p>By considering the roles played by people or other systems that interact with the system to derive value. (C)</p> Signup and view all the answers

A library system allows patrons to 'Borrow a Book', 'Return a Book', and 'Renew a Book'. What would be the MOST appropriate way to name these functions in a Use Case diagram?

<p><code>Borrow Book</code>, <code>Return Book</code>, <code>Renew Book</code> (C)</p> Signup and view all the answers

In the context of Use Case diagrams, which of the following is the MOST accurate description of an 'actor'?

<p>An external entity (user, system, or hardware) that interacts with the system. (C)</p> Signup and view all the answers

A customer using a 'CoffeeApp' interacts with the system to place an order. Which of the following represents a valid use case derived from this interaction?

<p><code>Place Order</code> (D)</p> Signup and view all the answers

When creating a Use Case diagram for an online shopping system, which of the following would be MOST suitable to represent as an actor?

<p>The payment gateway (A)</p> Signup and view all the answers

What is the significance of relationships between actors and use cases in a Use Case diagram?

<p>They illustrate the interactions and dependencies between users or external systems and the functions the system provides. (D)</p> Signup and view all the answers

Which of the following best describes the primary focus of a use case diagram?

<p>Representing the 'what' of system functionality from an actor's perspective. (C)</p> Signup and view all the answers

In use case specifications, what is primarily captured within the scenarios (flow of events)?

<p>The sequence of interactions between actors and the system to achieve a goal. (B)</p> Signup and view all the answers

In the coffee app example, what is the primary function of the 'validate order' use case?

<p>To ensure all order details are correct and items are available before sending to the POS. (B)</p> Signup and view all the answers

Which of the following best describes the relationship between the 'Log In' use case and 'Verify Password' use case?

<p>'Log In' includes 'Verify Password', as password verification is necessary for logging in. (D)</p> Signup and view all the answers

When constructing a use case diagram, from whose perspective should it primarily be structured and organized?

<p>End users (actors). (B)</p> Signup and view all the answers

What type of relationship should be used to model the interaction between 'Pay by Credit Card' and 'Pay by PayPal' if both are alternative payment methods for a 'Checkout' use case?

<p>Extend, as they offer alternative, optional ways to pay during 'Checkout'. (C)</p> Signup and view all the answers

What is the primary purpose of a use case specification?

<p>To detail the steps and interactions required to implement a specific use case. (B)</p> Signup and view all the answers

What does it mean when a use case is said to be 'meaningful on its own' in the context of an 'extend' relationship?

<p>The extended use case can provide value to the user independently of the base use case. (A)</p> Signup and view all the answers

Which element of a use case specification provides a brief explanation of the role and intention of a use case?

<p>Description. (D)</p> Signup and view all the answers

What is the significance of using a dotted line with an arrowhead pointing to the base use case from the child use case in a use case diagram?

<p>It represents an optional extension relationship. (B)</p> Signup and view all the answers

What should be the initial approach when structuring a use case diagram?

<p>Beginning with a simple, high-level view of the system. (B)</p> Signup and view all the answers

In use case diagrams, where are actors typically positioned in relation to the system boundary?

<p>Outside the system boundary, as they interact with the system. (B)</p> Signup and view all the answers

How should the level of detail in a use case diagram evolve during its creation?

<p>Begin with a high-level view and gradually refine with more detail. (B)</p> Signup and view all the answers

Besides people, what other elements can function as actors in a use case diagram?

<p>Organizations or other systems. (C)</p> Signup and view all the answers

Consider a scenario where the coffee app needs to handle a situation when the selected store is closed. Which use case relationship would be most appropriate to model the 'Display Store Closed' functionality?

<p>Extend, as it's an optional response to a specific condition. (B)</p> Signup and view all the answers

When should the include relationship be used in use case modeling?

<p>To denote uses, show complementary functionalities, and avoid repetition in multiple use cases. (C)</p> Signup and view all the answers

Which element of a use case specification defines the state of the system after the use case has successfully completed?

<p>Post-conditions (D)</p> Signup and view all the answers

In use case modeling, what do 'actors' primarily represent?

<p>External entities interacting with the system (D)</p> Signup and view all the answers

What is the primary purpose of documenting 'alternate flows' in a use case specification?

<p>To describe variations and exceptions to the main scenario. (A)</p> Signup and view all the answers

Which aspect of a use case specification captures requirements not directly addressed in the use-case model but crucial for the design and implementation?

<p>Special Requirements (D)</p> Signup and view all the answers

Within the context of use case specifications, what is the role of 'pre-conditions'?

<p>Specifying the conditions that needs to be true before the use case can start. (B)</p> Signup and view all the answers

What is the main goal of creating a use case diagram for a complex system process, like 'deposit and transfer money' in a banking system?

<p>To illustrate the user interactions and system responses for that process. (C)</p> Signup and view all the answers

In a use case scenario for an online shopping system, a customer attempting to purchase an item must be logged in. Which element of the use case specification would this requirement fall under?

<p>Pre-conditions (C)</p> Signup and view all the answers

Consider a use case for withdrawing money from an ATM. After the transaction, the ATM must update the account balance and dispense the cash. Which part of the use case specification would describe the updating of the account balance?

<p>Post-conditions (A)</p> Signup and view all the answers

Flashcards

Use Case Diagram

A visual representation of interactions between actors and a system, used to understand the system's functional requirements.

Actors (in UML)

Internal or external entities (users, systems) that interact with the system.

Use Cases

Actions or functions the system performs to meet goals (functional requirements).

Relationships (in UML)

Connections or interactions between actors and use cases.

Signup and view all the flashcards

System Boundary

A boundary that separates internal use cases from external actors.

Signup and view all the flashcards

Identifying Actors

Roles played by people or other systems that interact with the system.

Signup and view all the flashcards

Finding Use Cases

Start by listing actors and their needs from the system.

Signup and view all the flashcards

Naming Use Cases

Named by verb + noun, they describe what actions that actors will take.

Signup and view all the flashcards

Coffee App: Start

The customer initiates the order process through an app.

Signup and view all the flashcards

Select Store

Customer chooses their preferred store location.

Signup and view all the flashcards

Enter Coffee Choice

Customer specifies the desired coffee beverage.

Signup and view all the flashcards

Anything Else?

The app inquires if the customer wants to add anything else to their order.

Signup and view all the flashcards

Select Checkout

The customer proceeds to the checkout stage.

Signup and view all the flashcards

Request Payment

The application requests payment information.

Signup and view all the flashcards

Enter Card Number

The customer enters their credit card details.

Signup and view all the flashcards

Order Confirmation

The order is sent to the Point of Sale (POS) machine at the selected store, and an email confirmation is dispatched to the customer.

Signup and view all the flashcards

Include Relationship

A use case that is incorporated into another use case to avoid redundancy and simplify complex flows.

Signup and view all the flashcards

Generalization Relationship

A relationship where a child use case inherits and extends the behavior of a parent use case.

Signup and view all the flashcards

Payment Option Use Case

A scenario where a member selects credit/debit card payment after logging in.

Signup and view all the flashcards

Simplifying Use Cases

Breaking down a main use case into smaller, more manageable sub-use cases.

Signup and view all the flashcards

Common Event Flows

Placing shared sequences of actions into a separate use case that can be used by multiple other use cases.

Signup and view all the flashcards

What is an actor?

An external entity (user, system) that interacts with the system to achieve a goal.

Signup and view all the flashcards

What is a scenario?

A sequence of actions and interactions between actors and the system to fulfill a goal.

Signup and view all the flashcards

What is a Use Case Specification?

Detailed description of the interactions between actors and the system for a specific use case.

Signup and view all the flashcards

What is Flow of Events?

The structured form of a user story, detailing interactions between actors and the system.

Signup and view all the flashcards

The Purpose of Use Case Diagrams

To understand functional requirements by visually representing actor-system interactions.

Signup and view all the flashcards

The Focus of Use Case Diagrams

Functional, focusing on 'what' the system does, not 'how'.

Signup and view all the flashcards

How to Approach Use Case Diagrams

Simple, high-level, then refined for detail.

Signup and view all the flashcards

How should you structure a Use Case Diagram?

Structure the diagram from the perspective of the actors involved.

Signup and view all the flashcards

Actors (Use Case)

Entities (users, systems) interacting with the system initiating use cases.

Signup and view all the flashcards

Use Case Preconditions

Conditions that must be true before a use case can begin.

Signup and view all the flashcards

Flow of Events (Use Case)

The sequence of steps during the execution of a use case.

Signup and view all the flashcards

Basic Flow (Use Case)

The main scenario; the primary, most common path in a use case.

Signup and view all the flashcards

Alternate Flows (Use Case)

Variations or exceptions that may occur during a use case's execution.

Signup and view all the flashcards

Use Case Post-conditions

Constraints on the system's state when a use case finishes.

Signup and view all the flashcards

Special Requirements (Use Case)

Requirements not in the model, but crucial for design/implementation.

Signup and view all the flashcards

Key Scenarios (Use Case)

A description of critical use case scenarios.

Signup and view all the flashcards

Study Notes

  • These notes are on software modeling, specifically use case diagrams. UML (Unified Modeling Language) includes use case diagrams, but it is not necessary to use every part of UML.

What is a Use Case Diagram?

  • Provides a visual representation of interactions between actors (users or external systems) and a system.
  • Defines, communicates, and helps to understand the functional requirements of a system.

Goal of Use Case Diagrams

  • Helps users (developers, designers, customers) to understand system functionality from a user's point of view.
  • Useful for gathering and documenting functional requirements.
  • Facilitates communication and discussion of system functionality with various stakeholders.
  • Drives implementation and generates test cases based on specified requirements.

Use Case Elements

  • Actors: Internal or external users that interact with the system (e.g., human, organization, machine, or other external systems).
  • Use Cases: Actions or functions that the system needs to perform to meet its goals (FR - Functional Requirements).
  • Relationships: Connections/interactions between users and use cases (dependencies, generalizations, and associations).
  • System Boundary: A box around the use cases that separates them (internal) from the actors (external).
  • Functional requirements guide the identification of actors, use cases, and relationships

How to Identify Actors

  • Consider the defined roles played by people who interact with the system and other systems.
  • Determine the roles users play.
  • Identify who provides information to the system (inputs) and who receives information from the system (outputs).
  • Actors can be principal users or secondary entities like external hardware or other systems.
  • Actors interact with a use case that defines a system function.
  • Name actors with nouns.
  • Note: Actors are roles played by people and one person perform multiple roles and maybe other systems, and can be have names.

How to Find Use Cases

  • Begin with a list of actors.
  • Identify their needs from the system.
  • Consider their interactions.
  • Use cases are are typically named with a verb + noun
  • Each Actor must be linked to a use case, some use cases don't need to be linked to actors

Relationship Types for Use Cases

  • <> usage: Indicates optional or alternative behaviors on a normal behavior and it is optional.
  • <> usage: Shows must be included and complementary functionalities, logical dependencies; used to avoid repetition, when you repeat yourself in more separate use cases.
  • <> usage: Describes variations on normal behavior or represents inheritance relations.

<> Relation

  • Models optional system behavior and conditions.
  • The extended use case can add behavior to a base case, but can be meaningful and independent on its own.
  • In diagrams, it's a dotted line with the arrowhead pointing to the base use case from the child use case.

Relation: <>

  • The child use case must be done to complete the parent use case.
  • Used when common event flows are put into a use case, which is then included into the behavior of the base use case to avoid repetitive descriptions.
  • Simplifies large use cases by splitting them and also represents is a directed arrow having a dotted. Line with the arrowhead pointing to the child use case from the parent use case.

Relation: Generalization

  • The parent–child relationship between use cases.
  • The child use case inherits behavior and meaning from the parent use case.
  • The child may also override parent behavior.
  • Depicted with a directed arrow with triangle arrowhead.

Tips for Use Case Diagrams

  • Structure and organize the diagram from the perspective of the actors.
  • Keep use cases simple and at a high level initially, then refine.
  • Focus on the functionality of the system.

Use Case Specification

  • Details the steps and interactions required to implement a specific use case, describing the interactions between users and the system with graphical models and structured text.
  • Composed of actors and scenarios/flow of events, it captures the functional requirements.
  • Includes name of use case, description, actors, preconditions, flow of events, key scenarios, special requirements, post-conditions, and alternate flows each representing a different scenario.

Studying That Suits You

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

Quiz Team

Related Documents

Week 3.1 Software Modelling PDF

More Like This

Use Case Diagrams
17 questions

Use Case Diagrams

WellBalancedAtlanta avatar
WellBalancedAtlanta
Use Case Diagram Quiz
39 questions

Use Case Diagram Quiz

HeroicSugilite3653 avatar
HeroicSugilite3653
Use Quizgecko on...
Browser
Browser