10
Model-Driven Development of Real-Time and Distributed Project Report Taxi service UML model

UML taxi service.pdf

Embed Size (px)

Citation preview

  • 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

    ADMINISTRATOR USER

    TAXI BOOKING SYSTEM

    SOURCE/DESTINATION

    DATE/TIME

    TYPE OF TAXI

    FARE/KM &

    TOTAL FARE

    PAYMENT

    OPTION

    User Details

    REPORT

  • Class diagram:

    Generate Report

    1

    1..*

    Login

    1 Ticket 2 cancelled

    1

    1..*

    Generate report

    1 1 1 1

    PrintTkt

    Cab Terminal

    Cab_no

    Terminal_no

    Deptr_time

    Show

    Driver_detail();

    Cab

    Cab_no

    Fare

    Source :

    Destination

    Deptr_time

    Arri_time

    Class_type

    Get_cab_detail();

    Show_cabdetail()

    Add_cab();

    Delete_cab();

    Customer

    Cust_name

    Cust_age

    Cust_gender

    Cust_phn _no

    Cust_id

    Cab_no

    Grp_discount

    Get_c_detail();

    Show_c_detail();

    Add_cust();

    Delete_cust();

    Transport Dept

    Service prov_name

    Service_city

    Service_state

    Service_country

    Get_service_detail();

    Show_service_detail(

    );

    Bill

    Bill_id

    Bill_price

    Show_bill();

    Generate_bill();

    Show_bill()

    Cancellation

    Cab_no

    Date_of_cancel

    Cancel_charge

    Show_details();

    Cnfrm_cancel();

    Refund_charge();

    Reservation

    Cab_no

    Cust_name

    Date_ofjourney

    Fare

    Get_details();

    Show_detail(); Show_ticket();

    Login

    User_id

    Psswd

    Sign_in();

    Report

    Genrate_Report();

    Print_Ticket();

  • 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

    Add/Del/ Modify

    Taxi

    Add/Del/ Modify

    Submit Details

    Error or

    Success

    Message

    Get Details

    Verify Details

    Update Cab Details

  • Sequence diagram:

    Reserving the Taxi

    User Reservation

    Menu Database

    Display Menu

    Enter Details Submit Details

    Entered

    Success/Error Msg Dsp

    Verify Data

    Reserve Taxi

    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

    Check

    minimum

    level

    Cancel

    Taxi Dept

    Send

    Request

    Reserve Taxi

    Maintain

    database

    Book Taxi

    Do Payments

    If unavailable

    If available

  • 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.