0% found this document useful (0 votes)
115 views4 pages

Use Case Diagram for Cab Booking System

The document outlines an experiment focused on designing a Use Case Diagram for an Online Cab Booking System, highlighting objectives such as understanding Use Case Diagrams and identifying actors and use cases. It details the system's functionality, including actors like customers, drivers, and admins, along with use cases such as booking a cab and making payments. The experiment emphasizes the importance of visualizing user interactions and serves as a foundation for further system design.

Uploaded by

itskartiki.here
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
115 views4 pages

Use Case Diagram for Cab Booking System

The document outlines an experiment focused on designing a Use Case Diagram for an Online Cab Booking System, highlighting objectives such as understanding Use Case Diagrams and identifying actors and use cases. It details the system's functionality, including actors like customers, drivers, and admins, along with use cases such as booking a cab and making payments. The experiment emphasizes the importance of visualizing user interactions and serves as a foundation for further system design.

Uploaded by

itskartiki.here
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

BTCOL506 – Software Engineering Laboratory

Experiment No. 3: Draw the Use Case Diagram for Online Cab Booking
System

Title
To design and draw the Use Case Diagram for an Online Cab Booking
System.

Objectives
- To understand the concept and purpose of Use Case Diagrams in UML.
- To identify actors and use cases for the Online Cab Booking System.
- To represent system functionality through relationships like include,
extend, and association.
- To visualize user interaction with the system using UML modeling
tools.

Theory / Concept
A Use Case Diagram is a behavioral UML diagram that shows how users
(actors) interact with a system to achieve specific goals. It captures the
functional requirements of a system in a graphical form.

Elements of a Use Case Diagram:


1. Actors – Entities (users or external systems) interacting with the
system.
2. Use Cases – Functionalities provided by the system.
3. System Boundary – Defines the scope of the system.
4. Relationships – Association, Include, Extend.

Purpose:
- To identify system functionality from the user’s perspective.
- To help in requirement analysis and documentation.
- To serve as a base for designing activity and sequence diagrams.
Case Study: Online Cab Booking System

Description
The Online Cab Booking System allows customers to book cabs via a
web or mobile application. It connects passengers with available
drivers, handles fare calculation, and facilitates secure online payments.

Actors
- Customer: Books and manages rides.
- Driver: Accepts rides and updates status.
- Admin: Manages users, rides, and payments.
- Payment Gateway: Handles secure payments.

Identification of Use Cases


Sr. No. Use Case Description

1 Register / Login Customer and driver


register and log in to
the system.

2 Book Cab Customer enters


pickup and drop
locations and
requests a cab.

3 View Available Cabs Displays list of nearby


available cabs.

4 Accept Ride Driver accepts ride


request.

5 Track Ride Customer and driver


track the ride in real
time.

6 Make Payment Customer makes


payment via payment
gateway.

7 Generate Bill System calculates fare


and generates bill.

8 Manage Users & Admin monitors user


Reports accounts, rides, and
reports.

Use Case Diagram Description


Draw the Use case diagram for Online Cab Booking System

Steps to Draw the Use Case Diagram


1. Identify all actors interacting with the system.
2. List all main system functions (use cases).
3. Draw the system boundary and place use cases inside.
4. Connect actors to relevant use cases using association lines.
5. Add include and extend relationships where appropriate.
6. Label all components clearly.

Draw the Use case diagram for ATM System

?
Result
The Use Case Diagram for the Online Cab Booking System was
successfully drawn, showing all actors, use cases, and relationships
between them.

Conclusion
The experiment helped understand the use of Use Case Diagrams in
identifying system functionalities and actor interactions. It provides a
clear overview of how different users interact with the Online Cab
Booking System, serving as a foundation for further system design.

Common questions

Powered by AI

In the context of an Online Cab Booking System, the primary components of a Use Case Diagram include actors, use cases, system boundary, and relationships. Actors are entities like 'Customer', 'Driver', 'Admin', and 'Payment Gateway' that interact with the system. Use cases represent the system functionalities such as 'Register/Login', 'Book Cab', 'View Available Cabs', and 'Make Payment'. The system boundary indicates the scope of the system. Relationships like association connect actors to use cases, while include and extend can represent additional functionality requirements or optional behaviors .

The essential steps in drawing a Use Case Diagram for an Online Cab Booking System include identifying all actors interacting with the system, listing all main system functions as use cases, drawing the system boundary to define the scope, connecting actors to relevant use cases through association lines, and adding include and extend relationships where appropriate. Each component should be clearly labeled to enhance comprehension .

A Use Case Diagram aids requirement analysis by providing a graphical representation of the system's functional requirements from the user's perspective. For the Online Cab Booking System, it highlights the interactions and responsibilities between its actors (e.g., customers, drivers) and functionalities (e.g., 'Book Cab', 'Manage Users & Reports'). This visual tool helps identify missing requirements, prioritize functionalities, and ensure that all user interactions are captured and appropriately scoped .

A Use Case Diagram lays the groundwork for designing activity and sequence diagrams by clearly delineating the system's functional requirements and interactions with actors. For the Online Cab Booking System, identified use cases like 'Track Ride' inform the detailed flow of operations in activity diagrams, while interactions such as those between 'Customer' and 'Payment Gateway' are further expanded in sequence diagrams, capturing the order of operations and message exchanges necessary to implement these functionalities .

Accurately identifying actors is crucial because it determines how different users or systems interact with the application's functionalities. In the Online Cab Booking System, actors like 'Customer', 'Driver', 'Admin', and 'Payment Gateway' need to be correctly identified to ensure that all interactions like booking a cab, managing rides, and performing secure payments are accurately represented, allowing for comprehensive design and analysis .

In the Use Case Diagram for the Online Cab Booking System, 'include' relationships are used to show mandatory inclusion of functionality, such as requiring a 'Generate Bill' whenever a 'Make Payment' occurs. 'Extend' relationships indicate optional behavior that occurs only under specific conditions, for instance, an 'Extend' might show the inclusion of 'Apply Discount' in 'Make Payment' if a coupon is used .

The 'Manage Users & Reports' use case aids the admin by providing functionalities to monitor, review, and control user accounts, manage ride data, and generate reports related to system operations. This use case ensures that the admin can oversee the system's operational management and improve efficiencies through data insights and user management activities .

The system boundary in a Use Case Diagram defines the scope of the system by demarcating which system functionalities are included and which interactions with actors are external to the system. For the Online Cab Booking System, the boundary encapsulates functionalities like 'Register/Login', 'Book Cab', and 'Make Payment', ensuring clarity in representing what the system is responsible for and how it interacts with external actors like 'Payment Gateway' .

The 'Track Ride' use case in the Online Cab Booking System allows both customers and drivers to monitor the progress and location of the cab in real-time. In a Use Case Diagram, this is represented with lines connecting the 'Customer' and 'Driver' actors to the 'Track Ride' use case inside the system boundary, showcasing their interaction and reliance on this functionality for coordinating the ride journey .

Use Case Diagrams assist in visualizing user interactions and system functionality by providing a simple, coherent map that highlights how users engage with the system’s capabilities. For tools like an Online Cab Booking System, they lay out user interactions such as booking cabs, making payments, and tracking rides alongside system functionalities, promoting better understanding and communication among stakeholders, facilitating clearer requirement gathering and system design .

You might also like