Professional Documents
Culture Documents
Pakistan Online Train Ticket Reservation System: National University of Computer & Emerging Sciences Islamabad
Pakistan Online Train Ticket Reservation System: National University of Computer & Emerging Sciences Islamabad
SYSTEM
Submitted To:
Madam Amna Basharat Haider
Submitted By:
Ghazanfar Latif (06-0384_A)
Yasir Arfat
(06-0385_A)
Suleman Sadiq
(06-0192-B)
Introduction:
A passenger who wishes to travel by train must book the tickets. In order to do so he
has to go to the railway station to book the tickets. The booking authority checks the
availability of seats and books the tickets if available. This process is tedious. Online ticket
reservation system is one which enables the passenger who wishes to travel book his tickets
via internet. This helps him to reduce the time delays by waiting in queues while booking the
tickets. He can also view the current booking status and the availability of tickets for
reservation. In olden days all the registration details were maintained in files which were very
tedious to maintain. It also occupies a lot of space. Also updating the files was very difficult.
All these problems can be easily eliminated by the use of the software. Thus software is
implemented in booking of tickets.
Objectives:
In the case of ticket reservation software for railway system we need to get the
passenger details and train details. After this the system specifies the availability of tickets by
checking the details relevant to the particular train or the number of tickets required by the
passenger. If there is a vacancy it books the tickets otherwise it displays that there are no seats
available for reservation. For this we have to store the necessary details of the train such as
the number of seats available, date and time of travel as certain trains travel only on particular
days. Once all this is done booking becomes easy. Also if the software is made available
online then the person who wishes to travel can check the necessary details online and make a
reservation suitably. This is the main objective in online ticket reservation.
Scope:
Online ticket reservation system supports various features. Some of them are as
follows:
Updating of seats become easier.
Online booking of tickets is possible.
Errors while entering the details can be minimized.
Current status can be viewed.
Cancellation can be made.
It saves both time and energy.
Problem Statement and Description:
This system is designed for the online reservation of railway tickets for travel
between any destinations which is a part of Pakistan Railway network. This system enables
the Advance booking in any class, against general and ladies quota, on payment of fare in
full for adults and children, a maximum of six berths/seats at a time, for journey between any
two stations served by a train.
It also provides details about
1. Time table
2. Train fares
3. Current status of reservation position
4. Train available between a pair of stations
5. Accommodation available for a train/date combination
The user of this system should first register for any interaction with the system. Once
registered, he/she will be provided with a username and password for the user to log in. After
logging in the user should select the kind of activity he would like to perform like booking a
ticket, canceling a ticket, look out for help and so on. A person can check the train timings,
train fares and other trains information without login.
If he selects the booking the ticket option, then he/she should select the ‘to and from’
stations. After this step the user should select a particular train that runs between the specified
stations from a list of trains that is provided by the system. Once a particular train is selected,
the user should specify the class of travel and date of journey. Then he can view the vacancy
position in that train for that date. Depending upon the vacancy position, the user can proceed
to book his tickets. For reserving the ticket, the user should fill up the reservation form with
the details like name, age, sex, class of travel, preferred seats/berths and others. After filling
up this form, the user should submit this for reservation.
Then the mode of payment is selected and the user fills up the corresponding details.
Once these processes are over, the system automatically reserves the ticket for the user and it
deliver by post (TCS). The ticket number and PNR number details would be remembered to
the user for future reference. Thus the Online Train Ticket has been booked.
Meeting Minutes(1)
Yasir suggest to develop such a software which we can use in real life.
We meet with our hostel fellows which more than 50 students of Telecom Engineering
and computer science to ask about some project names.
They told us about a number of projects like hostel management system, chess game,
online ticket reservation system, car sales and services system, iPod running software.
We select online ticket reservation system for Pakistan Railway.
We discuss about problems of ticket reservation, then how can we solve these
problems.
Ghazanfar finalize the document.
Customer Visit
Goe Check
Chec
Booking Train Details
Typ Train Roots
Chec
To Seat Signup
Train Name
Cancelation Check
Check
Trains
Reserved To
Ticket Info
Check Available
Fares Seats Check
Class
Payment by Done
Done
Credit Card
To
Check
Ticket Reserved Congratulation
Done
Card Validity
Ready to
Print Logout
Conceptual Model
Actors:
Primary Actors:
➢ Traveler
➢ System Administrator
Secondary Actors:
Offstage Actors:
M ake Payment
Print Ticket
«include»
Check Seat
Av ailibilty Payment
Trav eller Make Reserv ation «include» Authoraization Serv ice
Check Time
Cancel
Av ailbilty
Reserv ation
Register
<<Uses>>
Velidate
<<Uses>> Passw ord
Validate User
Reserv
ud POTTRSation Database
Use Ca
. ..
«Actor»
Re serv ation
Da tabase System
View User Info
«extend»
Update User
View Train's Info Info
Admin
We discuss about both “high level use cases” written by Yasir and Suleman.
Solve the issues faced in writing use cases and make final use case model.
Do some practice to make use case diagram on the paper.
Model the use case diagram of “online train ticket reservation system” on paper.
Make use case diagram in “Enterprise Architect” software.
Assign to finalize the documentation of use cases and use case diagram to Ghazanfar.
Use Case No: 1
Overview: Traveler comes to site and login. He checks the seat availability at required time,
date and root. He also selects the class of ticket. After fulfilling the requirements,
he reserves the ticket and leaves the site.
Priority: High
Overview: Traveler arrives and login on website. Reserve his train ticket. Do Payment by
using the credit card. Payment authorization service checks the card validity and
with draws the fare of the ticket.
Priority: High
Triggering Traveler makes reservation and pays the tickets fares by using credit cards.
Event:
Alternate Flow: 2* The system can not access the Credit Authorization Service.
3* There will not be required amount in credit card.
Post Ticket required information’s sent to system so traveler can print the ticket.
Condition(s):
Use Case No: 3
Overview: Traveler login on the web site and does seat reservation. Now ticket is ready for
print. He prints the ticket which is used during his journey. He may save his ticket
in his account draft.
Priority: High
Alternate Flow: 2* Printer can not be properly connected with the system.
Post Traveler must take the ticket with him during the travel.
Condition(s):
Use Case No: 4
Overview: A traveler opens the website www.pottrs.com check the train information. He
checks the train timings, train routs, train type, general information about Pakistan
railway, public notices etc.
Priority: Low
Post Nil
Condition(s):
Use Case No: 5
Overview: Due to some problem, traveler can cancel his ticket with in time limit. He login on
the website. Cancel his reservation if the time limit is not passed over.
Priority: Medium
Pre- The traveler must resave the ticket and must login before cancel reservation.
Condition(s)
Alternate Flow: 4* Time limit for cancel reservation has been passed over.
Post Nil
Condition(s):
Use Case No: 6
Related Use Make Reservations, Update user information’s, Update train’s information’s
Case:
Overview: Traveler opens the website for reservation of train ticket. Validate user’s login his
account and reserve the required train ticket. After reservation of ticket they logout
their account.
Priority: High
Triggering Traveler comes open the site and login to reserve ticket.
Event:
Pre- Nil
Condition(s)
3-Print Ticket
Created By Ghazanfar
Latif
4-
Cancel Reservation:
Created By Ghazanfar Latif
5-
Agenda:
Selection of Use Case Model
Write Expended Use Case Model
Create Activity Diagram
Work Distribution:
Assign to write 3 use cases in expended format to Yasir Arfat.
Assign to write other 3 use cases in expended format to Suleman.
Ask to document use cases in final required format and to remove errors to Ghazanfar.
Assign to draw 2 activity diagrams to each.
Purpose of Document:
The purpose of this document is to decompose the domain of the project. During this
decomposition concept, attributes and association were identified. This helped us in better
understanding of the whole problem domain.
1 1
Admin
Trav eler
Checks
1..*
1
1..* 1..*
Goes to Start with 1..*
Online Users
Make 1..* - Name:
Register - Age:
1..* 1 Signin - Sex:
- Login Name:
- User Name: - User Name:
- Password: - Password:
- Sex: Can Perform
- Date of Birth: Initiate 1
Checks Check
1
Reserv ation LogOut
1 User Detais
+ Train Name:
- User Name:
- Root:
- Address:
- Time:
- Date of Birth:
- Class: Checks
- Booth No: - Sex: 1
1
- Quota:
- Seat No:
Update Train Details
1
1 Can - Upadate Train Timing:
Pay Perform
T icket
Fares 1..* 1..*
1
Train Details
Payment 1..*
- Train Roots:
- Train T imings: Update User Details
1
Done By
Credit Card
- Balance: Veldity
1 Checked by
Check
Fares Dedection
1
- Ticket Amount:
- Tax:
Then Create
Resev ationSlip
1
1 1
Cancellution 1 1
- Ticket Number:
Save Store
Print 1 -
T ake Location:
1..*
Agenda:
Selection Conceptual Classes
Identifying Concepts and attributes
Draw Domain Model Diagram
Work Distribution:
Assign to draw Domain Model diagram in Enterprise Architect 6.5 to Ghazanfar.
Ask to document Conceptual Classes by Category List.
Assign to write minutes of that meeting to Yasir Afrat.
SSD1 Make Reservation:
S
SD2 Make Payment:
SSD3 Print Ticket:
SSD3 Cancel Reservation:
SSD5 Validate User:
Contract No 1
Name: EnterBookingRequirements (Destination: String, Source: String,
date: Date, class: String)
Responsibility: Keep all the records like seat no, class, date, source and
destination information.
Type: System
Responsibility: Saves the Traveler Name, his Gander, Age, Number/ Birth no.
Type: System
Output: --
Type: System
Exception: --
Type: User
Note: --
Agenda:
Draw five main System Sequence Diagrams
Draw their important contracts related to SSD’s.
Work Distribution:
Assign to draw main System Sequence Diagrams to Yasir in Microsoft Office Visio 2007.
Assign to write their contracts to Suleman.
Assign to compile the complete document file to Ghazanfar.
SD1 Make Reservation:
SD2 Make Payment:
SSD3 Register New User:
Registeration
Traveler
:Register
MakeRegiseration ()
:DataSelect
:TrainInfo
By creator
If the trains are available for
required destination then
enter the passanger details
EnterPDetail(name,seatno,class,trainID,Date)
_________________________ 3:[new] Create()
:Ticket reserv ation g:insertData
1:seatno:=convert(seatno) 3.1:insertpdetail()
2:TrainId:=convert(TrainId)
C a n ce lR e se rva ti o n ()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _:C
_ _a n c e la tio n 1 :cre a te () 1 .2 C re a te ()
:U s e rIn fo :M a k e C a nc e l
1 .1 :In fo := fi n d (i d ,n a m e )
If th e p ro v id e d i n fo rm a ti o n
a re co rre ct th e n i t w il l cre a te
th e o b j e c t o f m a ke ca n c e l
a n d g o e s to n e xt ste p .
It w i l l cre a te th e o b j e c t
o f U se ri n fo Fo r l o g i n
b e fo re ca n ce l T o v a l i d a te th e u se r i t w i ll
re srva ti o o n S e le c tD a ta
g o e s to se l e c t cl a ss to g e t
u se ri n fo fro m th e d a ta b a se
fo r co m p a ri sio n
CD-4 Reservation
od Communication
1:TicketInfoSelect(TId,Date) DeleteTDetails(TID)
If the provided information
are correct and date is not
expired then it will create the
object Remeove info.
User insert the ticket info
to check that ticket is
booked are not
:DataSelect :UpdateData
registerUser()
:Register 1:NewUserInfo(ID,Name,Pass,Age,Add) :UserInfo
_________________
1.1 InsertNewUserInfo(ID,Name,Pass,Age,Add)
Traveler
Admin
- ----: 1
- ---:
1..*
+ ----()
1 + ---()
1..* 1..* 1
Make 1
1..*
Can Perform
Goes to
Register Check
- DOB: int
- ID: char 1
1..* 1
- Name: char
- Pass: char Update Train Details
- Sex: char User Detais
Initiate - Distance: int
- Address: char - Source: char
+ RegrNewUser(ID,Pass,Name,PNo,Sex,DOB)() : void - DOB: char - T_Time: int
1 - Name: char - TID: char
- Sex: char
Checks
+ UpdateT_timings(TID,Time)() : void
+ CheckUserDetails() : void
Reservation Checks 1
1 1
Can
- Date: int
Perform
- Desti: char
1..*
+ Source: char
- TrainID: int
UpdateUserDetails
+ CheckAvailableTrsins(Source,Dest)() : void - :
1..* 1..*
+ UpdateUDetails(ID,Pass)() : void
1
Enters the Train Details
1
1 - Source: char
Find
- TID: int
PDetails - TTimings: int
Pay Ticket
- Class: char Fares + ViewTDetails() : void Stores
- PName: char
- TicketNo: int 1
1 1..*
- TrainID: int 1 Update
Payment
+ EnterPDetails() : void
- ...:
1 1 1
1 Get
+ MakePayment() : void
POTTRSDataSelect
Done By 1 1
1 0..*
Credit Card 1
Preform
- Balance: int 1 1..*
Reservation
+ MakeReserSlip() : void
CDDataSelect
- ----: 1
Connect
CDDataAccess
+ closeConnection() : void
+ Connection() : void 1 - ----:
+ AccessCardInfoclose() : void
Class Diagram
pd Package Diagram
User Interface
Serv let
Controler
JDBCAccess CreditCardAccess
Database Store
Package Diagram
Meeting Minutes (7)
Agenda:
Draw five main Sequence Diagrams
Draw their Communication Diagrams
Draw the Class Diagram
Draw the Package Diagrams
Work Distribution:
Assign to draw five main Sequence Diagrams to Yasir Arfat in Microsoft Office Visio 2007.
Assign to draw their Communication Diagrams to Suleman EA.
Assign to draw the Class Diagram and Package Diagrams in EA to Ghazanfar.