Sie sind auf Seite 1von 10

Model-Driven Development of Real-Time and Distributed

Project Report

Taxi service UML model


Taxi service UML Model

Introduction:

The online taxi service allows users to book their taxi online . The platform offers administration
interface where the taxi company can manage the content and access all bookings and customer
information.

The taxi service should provide the following functionalities to the user:

 Provide the functionality to make your own bookings.


 Give your customers the facility to make payments and deposits online.
 Generate invoices.
 Update your web site without the need to get a web designer involved.
 Provide the customer with taxi availability.
 Track your customers.
 Engage your customers.

The basic flow of the taxi service can be followed by the use case diagram.

 User books the taxi by providing the details of source and destination.
 Booking clerk checks the database.
 If successful the user books the cab.
Use Case Diagram

TAXI BOOKING SYSTEM

SOURCE/DESTINATION

DATE/TIME

TYPE OF TAXI

FARE/KM &
TOTAL FARE

PAYMENT
OPTION

ADMINISTRATOR USER

User Details

REPORT
Class diagram:

Cab
Generate Report
Cab_no
Fare
Source :
Destination 1
Deptr_time
Cab Terminal Arri_time Transport Dept
Class_type
Cab_no Service prov_name
Terminal_no Get_cab_detail(); Service_city
Deptr_time Show_cabdetail() Service_state
Add_cab(); Service_country
Show 1..*
Delete_cab();
Driver_detail(); Get_service_detail();
Show_service_detail(
);
Login

1 Ticket
2
Customer cancelled

Cust_name Login
Cust_age
1 Cust_gender User_id
Cust_phn _no Psswd
Cust_id
Bill Cab_no Sign_in();
Grp_discount
Bill_id
Bill_price
Get_c_detail();
Show_c_detail();
Show_bill();
Add_cust();
Generate_bill();
Delete_cust();
1..*
Show_bill() Generate report

1 1 1 1
Reservation
PrintTkt Report
Cab_no Cancellation
Genrate_Report();
Cust_name
Print_Ticket(); Cab_no
Date_ofjourney Date_of_cancel
Fare Cancel_charge
Get_details();
Show_detail(); Show_details();
Show_ticket(); Cnfrm_cancel();
Refund_charge();
Sequence diagram: The sequence diagrams below shows the interaction between the different
processes. It shows the object interactions in time sequence.

Maintains Taxi Information

Administrator Taxi Menu Taxi Driver Database

Display Menu

Enter Taxi no

Entered

Enter Src & Dest

Entered

Enter Dept &


Arrival Time
Entered Get Details
Submit Details

Verify Details
Add/Del/ Modify
Taxi
Error or
Success
Message
Add/Del/ Modify

Update Cab Details


Sequence diagram:

Reserving the Taxi

Reservation
User Menu Database

Display Menu

Enter Details Submit Details

Entered
Verify Data
Success/Error Msg Dsp
Reserve Taxi

Do Payment
Make Payment Update Reservation
info
Display Taxi & Rsv
Sequence diagram:

Cancellation
State Diagram: The state diagram below describes the different operations of the uml model.

Check for
If available Taxi Dept
Reservation
Send
Check Request
minimum
level

If unavailable
Reserve Taxi

Cancel
Maintain
database

Book Taxi

Do Payments
Activity Diagram: The activity diagram below shows the stepwise graphical representation with support
for choice, iteration and concurrency.
Collaboration Diagram:

The collaboration diagram provides an overall view of the collaborating objects within the real time
environment of the system.

Conclusion:

Hence the above model can be used to successfully develop a software for online taxi service.