Vous êtes sur la page 1sur 17

ADD

PROJEC
T 2016 RAILWAY
RESERVATION
SYSTEM
IRFAN ULLAH 5227, FARZAN UL HAQ
59308, WALEED FAROOQ

[Type here]
RAILWAY RESERVATION SYSTEM

Contents
Introduction................................................................................................................ 4
PURPOSE................................................................................................................. 4
SCOPE..................................................................................................................... 4
Use Case diagram...................................................................................................... 6
Use Case Narrations................................................................................................... 7
User Registration..................................................................................................... 7
Login....................................................................................................................... 7
Authenticate user.................................................................................................... 7
Check Fare............................................................................................................... 7
Reserve Seat........................................................................................................... 7
Cancel Seat............................................................................................................. 7
Request for Bill........................................................................................................ 7
Logout..................................................................................................................... 7
Close Session.......................................................................................................... 7
Availability of Seat................................................................................................... 7
Availability Of trains................................................................................................ 8
Generate Bill........................................................................................................... 8
Flow of Events:........................................................................................................... 9
User Registration..................................................................................................... 9
Precondition......................................................................................................... 9
Main flows............................................................................................................ 9
Sub flow............................................................................................................... 9
Alternative flow.................................................................................................... 9
Login....................................................................................................................... 9
Precondition......................................................................................................... 9
Main flows............................................................................................................ 9
Sub flow............................................................................................................... 9
Alternative flow.................................................................................................... 9
Authenticate user.................................................................................................... 9
Precondition......................................................................................................... 9
Main flows.......................................................................................................... 10
Sub flow............................................................................................................. 10
Alternative flow.................................................................................................. 10
1 | ADD PROJECT 2016
RAILWAY RESERVATION SYSTEM

Check Fare............................................................................................................. 10
Precondition....................................................................................................... 10
Main flows.......................................................................................................... 10
Sub flow............................................................................................................. 10
Alternative flow.................................................................................................. 10
Reserve Seat......................................................................................................... 10
Precondition....................................................................................................... 10
Main flows.......................................................................................................... 10
Sub flow............................................................................................................. 11
Alternative flow.................................................................................................. 11
Cancel Seat........................................................................................................... 11
Precondition....................................................................................................... 11
Main flows.......................................................................................................... 11
Sub flow............................................................................................................. 11
Alternative flow.................................................................................................. 11
Logout................................................................................................................... 11
Precondition....................................................................................................... 11
Main flows.......................................................................................................... 11
Sub flow............................................................................................................. 11
Alternative flow.................................................................................................. 11
Activity Diagrams..................................................................................................... 12
Activity Add USER
................................................................................................................................. 12
Activity Login......................................................................................................... 13
Activity Reservation............................................................................................... 14
Cancel Reservation................................................................................................ 15
Class Diagram.......................................................................................................... 16
Sequence Diagram................................................................................................... 17

2 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Introduction
PURPOSE
In this emerging world of computers, almost all-manual system
has switched to automated and computerized system. Therefore,
we are developing the software for Railway Reservation System
to model the present system and to remove the drawbacks of the
present system. This project explores how computer technology
can be used to solve the problem of user.
Railway is the cheap source of transportation and mostly use by
the people to travel with in a country in different cities also in
Pakistan large number of people travel between cities with
railway. There are numbers of Trains running between cities to
facilitate the Passengers. When we think to travel with a train
many questions come on our mind like:
which train is running between which city?
what is the Fare of tickets?
Availability of tickets.
Availability of trains.

This project introduces railway reservation system. It explains how


reservation is being done in Pakistan Railways.
SCOPE
Our project introduces railway reservation system with an
objective to make the reservation system more efficient, easier
and fast. This project explores how computer technology can be
used to solve the problem of user.
The main objectives provided by this software are as follows:
Enquire about availability of trains
Reserve and cancel their seats
Get Quarries about Timetable of trains
Information of the Train E.g. Name & Number
Fare of Tickets

3 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Use Case diagram

4 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Use Case Narrations


User Registration
An actor admin will be able to register Users then they will help
customers through system.
Login
User login to the system to use the System.
Authenticate user
System Authenticate the user when it wants to login to the
system and send a request for a Login.
Check Fare
User of the system check the fares of different trains to facilitate
passengers.
Reserve Seat
User Reserve the seat for the customer it includes Availability of
seats and Availability of Trains for the destination it includes
availability of trains and tickets and the and the availability of
tickets extend to generate PNR of the tickets.
Cancel Seat
User can Cancel the reserve seat of the customer on the request
of customer.
Request for Bill
A user can send a request for the Bill when it reserve seat.
Logout
A user a send a request for a Closed session to the system then
the then the system perform the use case to close the session.
Close Session
On the request from the User to Logout a system close the current
session.

5 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Availability of Seat
A user when send the request of reserve seat the system check
the availability of seats and conform that there are any available
seats.
Availability Of trains
A user when send the request for reserving seat then the system
check the availability of trains also and also check has there any
trains for required destination.
Generate Bill
When user request for a bill then a system will generate bill a
when reservation made.

6 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Flow of Events:
User Registration
Precondition
A user should have authorized details to register.
Main flows
This use case begins when user provide information to register
himself in the system then system add him as authorized user, for
verification purpose of details an email and message send to the
cell number and email address respectively.
Sub flow
1) When receiving these code a user must enter these details
into the Popup screen.
2) A new Account added to the system.
Alternative flow
After registration system displays alternative UI to the user to
choose to want to continue with signing in either to sign-out.
Login
Precondition
To login in a system a user must have an authorized account.
Main flows
This use case begins when user provide his information to the
system to login into the account. User provide his email and
passwords to enter in the system. If information submitted
correctly, then it authorized to login.
Sub flow
A new window with many features opens when system authorized
user to sign in.
1) Reservation
2) Cancelation
3) Logout

7 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Alternative flow
This alternative flow begins when an error occurs like if any
information filled incorrectly then these flows begins in new form
the user would be able to add information again.
Authenticate user
Precondition
For authentication, a user must have provided information and
press Login
Main flows
This use case begins when user want to login in the system then
system authenticate the user to use the system if it succeeds new
window popup if failed then again need to enter information.
Sub flow
If authentication succeed in new window a user will be able to use
the features of the system
Alternative flow
If authentication failed, then a screen popup to try again to
authenticate

Check Fare
Precondition
1. A user should provide the information of from and
destination.
2. Selection of Train.
3. Selection Seat.
Main flows
This use case begins when a user wants to check the fare of trains
between the destinations it if trains and seat are available
between requested destinations it shows the fare.
Sub flow
If train and seats are available, it offers to reserve seat for
customer and need information

8 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Alternative flow
If seat or train are not available, then provide an option to change
a destination or change train.
Reserve Seat
Precondition
1) Login
2) For Reserving seats, there should be available trains and
tickets.
Main flows
This use case begins when user wants to reserve a seat for
customer and the information provided by the customer for
traveling after the information the selection of trains and bath
after completion of information a screen a pop up.
Sub flow
1) Bill Generation
2) A new screen pop up for bill generation.
Alternative flow
The uncomplete information restarts the process of reserving
seats.
Cancel Seat
Precondition
Already there should be a Reserve seat to cancel.
Main flows
This use case begins when a user wants to cancel a seat of
customer on their request a conformation window open for
cancellation of when conformation done then the screen open for
re reservation.
Sub flow
When a confirmation starts of cancellation of reserve seat in new
window it confirms the cancellation.
Alternative flow
In this use case the alternative flow can be the new window which
popup for re-reservation of the tickets if customer wants.
9 | ADD PROJECT 2016
RAILWAY RESERVATION SYSTEM

Logout
Precondition
The user must execute log out use case in order to close session
or close profile.
Main flows
The use begins from user by clicking the log out. The system will
check the ongoing activity
Sub flow
After execute log out the system will check the ongoing activity. If
there is an activity on run the system will prompt a warning
message to cancel log out or cancel the current activity. The user
will cancel log out or cancel the activity.
Alternative flow
N/L

10 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Activity Diagrams
Activity Add USER

11 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Activity Login

12 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Activity Reservation

13 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Cancel Reservation

14 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Class Diagram

15 | ADD PROJECT 2016


RAILWAY RESERVATION SYSTEM

Sequence Diagram

16 | ADD PROJECT 2016

Vous aimerez peut-être aussi