EXPERIMENT -7(c)
ONLINE TICKET RESERVATION SYSTEM
Aim: - To design an object oriented model for online ticket reservation system using rational
rose software and to implement it using java.
PROBLEM STATEMENT:
The “Any Where Any Time Advance Reservation” system is the online ticket reserving
system where the passengers can reserve the tickets for their travel, cancel the reserved ticket
and they can view the status of the ticket before travelling.
The passenger who is reserving the ticket in AWATAR unless they are the member of
AWATAR .The passenger can reserve the ticket by giving the required detail in the form and
submit it for the processing .They can reserve for at the max for five members and a single
ticket is provided for them.
The administrator the AWATAR can control the ticket reservation and the accounts of
the passengers who are signing up in AWATAR. The administrator can reset the seats, fares of
the tickets, and generates the PNR number for the ticket that are reserved.
The sole control of the system is handled by the administrator. The printer prints the
tickets that are reserved by the passenger. The passenger can sign-up for only one time and he
can sign in for any number of times for reserving, cancelling and viewing the tickets.
The AWATAR system provides flexibility for the persons based on the age, the
passengers are fared based on the age and the place of travelling. This makes ease of use in
using AWATAR system. The system tracks for the database any number of times for reserving,
cancelling and status viewing.
The passenger can see the status of the classes that are available in the train which he
is going to travel by noticing the number of seats details from the display board.
The cancellation of the tickets is also very easy so that the passenger can cancel the
tickets that he has booked.
PROBLEM REQUIREMENTS:
1. Basic Requirements:
1) Source place.
2) Destination place.
3) Date of journey.
2. Functional Requirements:
1) Details of passengers.
2) Details of the coach.
3) Pay the amount using visa card or debit card.
4) Give out the balance
5) Show the detail of ticket.
3. Non-Functional Requirements:
1) Trading system failure.
2) Unavailability of date.
3) Coach Unavailability
4) Insufficient amount for making payment.
5) Unavailability of berth.
MODELING:
UML DIAGRAMS:
Class Diagram:
Class Diagram for Login
Class Diagram for Reservation
Use case Diagram:
Login
Ticket Reservation
Admin
Passenger
Ticket Cancellation
Printer
Use Case diagram for Online Ticket Reservation System
Sequence Diagram:
PASSENGER SYSTEM DATABASE
Req username & password
Enter username & password
Validates data
Permits to access
Sequence Diagram for Login
PASSENGER SYSTEM DATABASE
Req username & password
Enter username & password
Validates data
Permits to access
Sequence Diagram for Reservation
Collaboration Diagram:
2: Enter username & password
PASSENGE SYSTEM
R
1: Req username &
password 4: Permits to
access
3: Validates data
DATABASE
Collaboration Diagram for Login
2: Enter Train
no 5: Enter
class
PASSENGE SYSTEM
R
1: Requests train
no 4: Requires
class
7: Display resevation details
3: Validates data
DATABASE
6: Validates data
Collaboration Diagram for Reservation
Activity Diagram:
System Requests
Username and Password
Passenger enters
Username and Password
System validates the given
data from the passenger
System checks
data in database
Passenger enters into System displays the
the next level error message
Passenger views
other options available
Passenger exits Passenger re-enters the
the system required data
Activity Diagram for Login
System requires for
the Train number
Passengers enters
the Train number
System requires for
System validates and displays the
the travelling date
train name and days available
Passenger enter the
travelling date
System validates the data
entered by the passenger
System requires for System displays the
class of travel error message
Passenger enters
the class of travel
Passenger leaves Passenger re-enters the
the system required data
System validates
the data entered
Passenger submits the System displays the
completed form error message
System displays Passenger re-enters the
the message required data
Activity diagram for Reservation System
State Chart Diagram:
State chart Diagram for Login
State Chart Diagram for Reservation System
Component Diagram:
Online
Reservation
System
Updat
e
Front
Panel
Component diagram for Online Ticket Reservation System
Deployment Diagram:
Online Reservation System
Counter PC
Deployment diagram for Online Ticket Reservation System