0% found this document useful (0 votes)
5 views

Usecase Model

Uploaded by

Jawad Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Usecase Model

Uploaded by

Jawad Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Use Case Diagrams | Unified

Modeling Language (UML)


• A Use Case Diagram is a vital tool in system design, it provides a visual
representation of how users interact with a system. It serves as a
blueprint for understanding the functional requirements of a system
from a user’s perspective, aiding in the communication between
stakeholders and guiding the development process.

• What is a Use Case Diagram in UML?
• A Use Case Diagram is a type of Unified Modeling Language (UML)
diagram that represents the interaction between actors (users or
external systems) and a system under consideration to accomplish
specific goals. It provides a high-level view of the system’s
functionality by illustrating the various ways users can interact with it.
• 2. Use Case Diagram Notations
• UML notations provide a visual language that enables software
developers, designers, and other stakeholders to communicate and
document system designs, architectures, and behaviors in a
consistent and understandable manner.
• 1.1. Actors
• Actors are external entities that interact with the system. These can include users, other
systems, or hardware devices. In the context of a Use Case Diagram, actors initiate use
cases and receive the outcomes. Proper identification and understanding of actors are
crucial for accurately modeling system behavior.
• 1.2. Use Cases
• Use cases are like scenes in the play. They represent specific things your system can do.
In the online shopping system, examples of use cases could be “Place Order,” “Track
Delivery,” or “Update Product Information”. Use cases are represented by ovals.
• 1.3. System Boundary
• The system boundary is a visual representation of the scope or limits of the system you
are modeling. It defines what is inside the system and what is outside. The boundary
helps to establish a clear distinction between the elements that are part of the system
and those that are external to it. The system boundary is typically represented by a
rectangular box that surrounds all the use cases of the system.
Purpose of System Boundary:
• Scope Definition: It clearly outlines the boundaries of the system,
indicating which components are internal to the system and which
are external actors or entities interacting with the system.
• Focus on Relevance: By delineating the system’s scope, the diagram
can focus on illustrating the essential functionalities provided by the
system without unnecessary details about external entities.
• 3. Use Case Diagram Relationships
• In a Use Case Diagram, relationships play a crucial role in depicting
the interactions between actors and use cases. These relationships
provide a comprehensive view of the system’s functionality and its
various scenarios. Let’s delve into the key types of relationships and
explore examples to illustrate their usage.
• 3.1. Association Relationship
• The Association Relationship represents a communication or interaction
between an actor and a use case. It is depicted by a line connecting the
actor to the use case. This relationship signifies that the actor is involved in
the functionality described by the use case.
• Example: Online Banking System
• Actor: Customer
• Use Case: Transfer Funds
• Association: A line connecting the “Customer” actor to the “Transfer
Funds” use case, indicating the customer’s involvement in the funds
transfer process.
• 3.2. Include Relationship
• The Include Relationship indicates that a use case includes the functionality
of another use case. It is denoted by a dashed arrow pointing from the
including use case to the included use case. This relationship promotes
modular and reusable design.
• Example: Social Media Posting
• Use Cases: Compose Post, Add Image
• Include Relationship: The “Compose Post” use case includes the
functionality of “Add Image.” Therefore, composing a post includes the
action of adding an image.

• 3.3. Extend Relationship
• The Extend Relationship illustrates that a use case can be extended by
another use case under specific conditions. It is represented by a dashed
arrow with the keyword “extend.” This relationship is useful for handling
optional or exceptional behavior.
• Example: Flight Booking System
• Use Cases: Book Flight, Select Seat
• Extend Relationship: The “Select Seat” use case may extend the “Book
Flight” use case when the user wants to choose a specific seat, but it is an
optional step.

• 3.4. Generalization Relationship
• The Generalization Relationship establishes an “is-a” connection
between two use cases, indicating that one use case is a specialized
version of another. It is represented by an arrow pointing from the
specialized use case to the general use case.
• Example: Vehicle Rental System
• Use Cases: Rent Car, Rent Bike
• Generalization Relationship: Both “Rent Car” and “Rent Bike” are
specialized versions of the general use case “Rent Vehicle.”
4. How to draw a Use Case diagram in UML?
• Step 1: Identify Actors
• Determine who or what interacts with the system. These are your actors.
They can be users, other systems, or external entities.
• Step 2: Identify Use Cases
• Identify the main functionalities or actions the system must perform. These
are your use cases. Each use case should represent a specific piece of
functionality.
• Step 3: Connect Actors and Use Cases
• Draw lines (associations) between actors and the use cases they are
involved in. This represents the interactions between actors and the
system.
• Step 4: Add System Boundary
• Draw a box around the actors and use cases to represent the system
boundary. This defines the scope of your system.
• Step 5: Define Relationships
• If certain use cases are related or if one use case is an extension of another,
you can indicate these relationships with appropriate notations.
• Step 6: Review and Refine
• Step back and review your diagram. Ensure that it accurately represents
the interactions and relationships in your system. Refine as needed.
• Step 7: Validate
• Share your use case diagram with stakeholders and gather feedback.
Ensure that it aligns with their understanding of the system’s functionality.

You might also like