Académique Documents
Professionnel Documents
Culture Documents
A.1 SCOPE
The manual system of ticket reservation takes more time and the number of
reservations per day is limited. To increase the efficiency of the process, we go for
online ticket reservation system. This system supports online ticket booking.
A.1.1 Audience:
The intended audience of this system are the passengers and the system
administrator.
This system also has the facility of cancellation of tickets. If the tickets are not
available, then the current status of the system is also known through this system.
The online reservation system maintains the full details of the entire passenger
who are reserving the tickets in the specified railway services.
1. login
2. reserve/cancel
3. add/delete train
4. view/print ticket
5. availability
6. database
7. logout
1. Passenger
2. System Administrator
Use-case: login
The user enters a username and a password. And if the entered details are
valid, the user’s details are brought to the screen; if they are invalid then an
appropriate message is displayed.
Use-case: reserve/cancel
The user is allowed to book a ticket on the train he requires and the date and
time as is necessary for the user. The user has to provide details such as name, train
number, date of travel, departure time, and can view the price of the ticket. A
passenger can also decide to cancel a ticket after the ticket is booked. The passenger
has to provide details about ticket for searching and details about him for
confirmation of identity.
Use-case: availability
The passenger can view the trains and seats available in the database for
deciding which train’s ticket he wishes to book. The passenger can view the details of
trains such as, train number, price, departure and arrival times.
Use-case: database
It stores all the data that are related to this Online Ticket Reservation system.
The data include train details, passenger details, ticker details, availability details etc.
Use-case: logout
After the necessary operations have been performed on the system, the user
can choose to logout from the system.
Actor: passenger
The end-user who uses the system for booking tickets.
reserve/cancel
system administrator
view/print ticket
availability
database
logout
Fig A-1: overall use-case scenario for Online Ticket Reservation System
A.4 CLASS DIAGRAM
The class diagram is a graphical representation of all the classes used in the
system and their operations, attributes and relationships.
The online ticket reservation system makes use of the following classes:
o Ticket system
o Train details
o Ticket
Ticket system
It consists of two attributes and two operations. The attributes are username
and password. The operations used are login () and logout ().
Train details
It stores the details of all the trains such as train number, train name, and seat
availability. The operations available are add (), delete () and view ().
Ticket
It records the details of every ticket booked such as ticket number, passenger
name, and train number, from place, to place, seat availability, date of travel,
departure time, arrival time, and price. The operations available are add (), delete (),
view (), and print ().
Train Details
Ticket System train_no
username train_name
password seats_avail
login() add()
logout() delete()
view()
Ticket
ticket_no
passenger_name
train_no
from
to
date
seat_avail
dep_time
arr_time
price
add()
delete()
view()
print()
2: add( )
3: delete( )
4: logout( )
2: view( )
3: logout( )
: Ticket : Ticket
System
: passenger
1: login( )
2: reserve( )
3: cancel( )
4: logout( )
: Ticket : Ticket
System
: passenger
1: login( )
2: view( )
3: print( )
4: logout( )
1: login( )
: Ticket
System
: system administrator
4: logout( )
2: add( )
3: delete( )
: Train
Details
1: login( )
: Ticket
System
: passenger
3: logout( )
2: view( )
: Train
Details
1: login( )
: Ticket
System
: passenger
4: logout( )
2: reserve( )
3: cancel( )
: Ticket
1: login( )
: Ticket
System
: passenger
4: logout( )
2: view( )
3: print( )
: Ticket
login
valid invalid
login
valid invalid
login
invalid
valid
reserve/cancel invalid user
login
invalid
valid
view/print invalid user
ticket
Login
Train Details
Reserve/Cancel Ticket