Podcast
Questions and Answers
What does a use case diagram primarily illustrate?
What does a use case diagram primarily illustrate?
An actor in a use case diagram can only be a human user.
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?
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.
In an ATM use case, a customer is an example of a ______ actor.
Signup and view all the answers
Match the following terms with their definitions:
Match the following terms with their definitions:
Signup and view all the answers
What is a primary actor in a use case diagram?
What is a primary actor in a use case diagram?
Signup and view all the answers
A use case only includes successful user interactions with the system.
A use case only includes successful user interactions with the system.
Signup and view all the answers
What is depicted by an ellipse in a use case diagram?
What is depicted by an ellipse in a use case diagram?
Signup and view all the answers
An actor is represented by a ______ figure in a use case diagram.
An actor is represented by a ______ figure in a use case diagram.
Signup and view all the answers
Match the following components of a use case diagram:
Match the following components of a use case diagram:
Signup and view all the answers
What is an example of a use case for an ATM?
What is an example of a use case for an ATM?
Signup and view all the answers
Associations among actors are typically shown in use case diagrams.
Associations among actors are typically shown in use case diagrams.
Signup and view all the answers
What type of relationship exists among use cases that signifies mandatory inclusion?
What type of relationship exists among use cases that signifies mandatory inclusion?
Signup and view all the answers
What notation is used to represent an include relationship in use cases?
What notation is used to represent an include relationship in use cases?
Signup and view all the answers
Extend relationships in use cases are used to show common behaviors shared by multiple use cases.
Extend relationships in use cases are used to show common behaviors shared by multiple use cases.
Signup and view all the answers
Define what an include relationship does in use cases.
Define what an include relationship does in use cases.
Signup and view all the answers
The __________ relationship is used to represent inheritance between use cases.
The __________ relationship is used to represent inheritance between use cases.
Signup and view all the answers
Match the following use case relationships with their descriptions:
Match the following use case relationships with their descriptions:
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?
In the example of an online bookstore, what optional action can a user specify during the 'Place Order' use case?
Signup and view all the answers
Give an example of a generalization relationship in use cases.
Give an example of a generalization relationship in use cases.
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.
Related Documents
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.