Sunteți pe pagina 1din 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
Deptr_time
Arri_time
Class_type

Cab Terminal
Cab_no
Terminal_no
Deptr_time

1
Transport Dept
Service prov_name
Service_city
Service_state
Service_country

Get_cab_detail();
Show_cabdetail()
Add_cab();
1..*
Delete_cab();

Show
Driver_detail();

Get_service_detail();
Show_service_detail(
);

Login
1
2
Customer
Cust_name
Cust_age
Cust_gender
Cust_phn _no
Cust_id
Cab_no
Grp_discount

1
Bill
Bill_id
Bill_price

Ticket
cancelled
Login
User_id
Psswd
Sign_in();

Get_c_detail();
Show_c_detail();
Add_cust();
Delete_cust();

Show_bill();
Generate_bill();

1..*
Show_bill()

Generate report
Reservation

1
PrintTkt

Cab_no
Cust_name
Date_ofjourney
Fare
Get_details();
Show_detail();
Show_ticket();

Report
Genrate_Report();
Print_Ticket();

Cancellation
Cab_no
Date_of_cancel
Cancel_charge
Show_details();
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

Add/Del/ Modify

Error or
Success
Message
Update Cab Details

Sequence diagram:
Reserving the Taxi
Reservation
Menu

User

Database

Display Menu
Enter Details

Submit Details

Entered
Verify Data
Reserve Taxi

Success/Error Msg Dsp

Do Payment
Make Payment
Display Taxi & Rsv

Update Reservation
info

Sequence diagram:
Cancellation

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

Check for
Reservation

If available

Check
minimum
level

Taxi Dept
Send
Request

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.

S-ar putea să vă placă și