Online Ticket Reservation System Aim
Online Ticket Reservation System Aim
AIM:
To develop a software for Online Ticket Reservation system with various functionalities
namely,
Problem analysis and requirement analysis
Use case documentation
UML , Sequence, Class and Interaction diagrams.
The Online Ticket Reservation System allows the passenger to login, check availability, reserve
and cancel Train tickets online. Reservation manager is used to update the new details in the
database .
USECASE DIAGRAM:
Login
Viewing train
details
Passenger
Reservation
Cancellation
Ticket generation
Admin
Viwing passenger
list
USECASE DESCRIPTION:
Usecase name:Cancellation
Primary actor: Passenger
Pre-condition: The tickets number is specified and the ticket is being cancelled.
Post-condition: The ticket is cancelled successfully.
Description: The ticket number and the no of tickets to be cancelled is being specified and the
ticket is cancelled. The details are updated in the database.
Alternate Scenario: The ticket cannot be cancelled if ticket number is wrong or after the
departure of the train.
SEQUENCE DIAGRAMS:
i).LOGIN:
:PASSENGER :LOGIN :RESERVATIO
N CLERK
1:enter name and password
3:verify
The username, password are being entered by the passenger. The password and
user name are both sent to the database and checked. Once authenticated the user is allowed
access to the next page.
ii)VIEWING DETAILS:
3:verify
9:process completed
3:verfy
5:book tickets(reserve)
10:verify
11.successfully verified
12.successfully reserved
13.issue ticket
The tickets are being reserved if the seats are available. Its done by specifying the
corresponding details required to book tickets. After the ticket is reserved the ticket is issued.
The details are updated in the database.
iv)TICKET CANCELLATION:
3:verify
5:cancellation
8:verify
9:send acc.no
11.successfully verif...
12.successfully cancelled
The tickets to be cancelled are specified with corresponding details. After the
confirmation is got the ticket is cancelled and the changes are updated in the database.
CLASS DIAGRAM:
; AUTHENTICATE
user name : char name : char
user password : char password : char
user age : int
address : char login()
check availability]()
book ticket()
cancel ticket()
CANCEL RESERVATION
cancel()
RESERVATION BANK
CLERK
account no : int
issue ticket() balance : int
update details() customer name : char
validate()
add reservation() verify()
ADD RESERVATION cancel reservation() update()
add reservation()
view()
INTERACTION DIAGRAMS:
(i).LOGIN:
:RESERVATION
CLERK
(ii).TICKET RESERVATION:
1: :1.enter name and pwd
:passen :login
ger
5: 5:book tickets(reserve)
8: 8:enter acc. no.
4: 4:shows home page
7: 7:ask for account no.
12: 12.successfully reserved
13: 13.issue ticket
10: 10:verify
5: 5:cancellation
7: 7:enter details and acc.no
4: 4:shows home page
6: 6:ask for details and acc.no
12: 12.successfully cancelled
2: 2:sending name & pwd
3: 3:verify
8: 8:verify 10:
9: 9:send acc.no
:reservation 10:verify
clerk
11: 11.successfully verified
(iv).VIEWING DETAILS
1: 1:enter name and pwd
:passen :login
ger
:reservation
clerk