Академический Документы
Профессиональный Документы
Культура Документы
Railways System
Zahid Mehboob
Prestion University
1432209091
Zahidmehboob@live.com
Table of Contents
1 Project Description............................................................................................................................ 03
1.1 Brief Description ........................................................................................................................ 03
1.2 Main Stakeholders ..................................................................................................................... 05
2 Software Feasibility Analysis ............................................................................................................. 06
3 Domain Model .................................................................................................................................... 18
4 Software Risk Management Plan ........................................................................................................ 20
5 Requirement Collection ...................................................................................................................... 27
6 Requirement Classification ................................................................................................................. 30
6.1 Requirement Categories .......................................................................................................... 30
7 Requirement Conflict Resolution........................................................................................................ 32
7.1 Requirement Conflicts ............................................................................................................ 32
8 Requirement Prioritization .................................................................................................................. 33
8.1 Priority Assignment ................................................................................................................ 33
8.2 Prioritization Mechanism ........................................................................................................ 34
9 Software Process Model...................................................................................................................... 35
10 Project Schedule.................................................................................................................................. 35
11 Software Requirement Specification (SRS) ........................................................................................ 37
12 Function Category List with System Attributes .................................................................................. 56
13 VORD Method .................................................................................................................................... 62
14 Formal Specification Using Z language .............................................................................................. 78
15 Object Oriented Design....................................................................................................................... 92
15.1 Noun Extraction Method......................................................................................................... 94
15.2 Six Selection Characteristics ................................................................................................... 95
15.3 CRC Index Cards .................................................................................................................... 98
15.4 Conceptual Class Category List ............................................................................................ 111
15.5 Requirement Categorization Table ....................................................................................... 111
15.6 UML Diagrams ..................................................................................................................... 113
15.6.1 UML Structural Diagrams ............................................................................................... 113
2|Page
zahidmehboob@live.com
15.6.1.1 Class Diagram ......................................................................................................... 114
15.6.1.2 Object Diagram ...................................................................................................... 116
15.6.1.3 Component Diagram .............................................................................................. 118
15.6.1.4 Deployment Diagram ............................................................................................. 121
15.6.1.5 Composiste Structure Diagram .............................................................................. 123
15.6.1.6 Package Diagram ................................................................................................... 126
15.6.2 UML Behavioral Diagrams .............................................................................................. 131
15.6.2.1 Use Case Diagram .................................................................................................. 132
15.6.2.2 Activity Diagarm.................................................................................................... 134
15.6.2.3 State Machine Diagram .......................................................................................... 137
15.6.3 UML Interaction Diagrams .............................................................................................. 139
15.6.3.1 Sequence Diagarm ................................................................................................. 140
15.6.3.2 Communication Diagram ....................................................................................... 145
16 Sample Test Cases ............................................................................................................................ 148
3|Page
zahidmehboob@live.com
4|Page
zahidmehboob@live.com
1. Project Description
Pakistan Railways (reporting mark PR) is a national state-owned rail transport service
of Pakistan. . It is administered by the federal government under the Ministry of Railways. . PR
provides an important mode of transportation throughout Pakistan. It is commonly referred to as
the "life line of the country", by aiding in large scale movement of people and freight throughout
Pakistan.
This Project describes the Pakistan Railway system named as “RailCop Pakistan Ltd.”. All railway
companies try to attain more regular and reliable train services, in order to be able to offer their customers
a higher reliability and flexibility. The present, expensive, strategy is increasing” physical” capacity. A
more cost effective alternative is to first, as far as possible, improve quality in the train control process
itself. The most important factor in this process is the train dispatcher, who from a control centre
supervise (monitor and control) the movements of trains. The dispatchers chances to, in an active way,
plan and control the train traffic is often crucial for how different disturbances effect train delays. We
present a brief overview of existing knowledge and research and some important findings from a survey
based on a set of interviews with dispatchers and train traffic experts. Also indicated are further studies
necessary in order to, at the end, be able to successfully implement a system of this kind. We also
improved the factor of passenger safety and in order to provide comfort to our customers we introduced
the concept of Graphical User Interface (GUI) and many more enhancements to the present environment
has been put forth.
5|Page
zahidmehboob@live.com
1.2 Main stakeholder
Passengers
Students
Customers
6|Page
zahidmehboob@live.com
Software Feasibility Analysis
7|Page
zahidmehboob@live.com
2.1 GENERAL INFORMATION
2.2 Purpose
The purpose is
2.3 Scope
Our scope is to facilitate the customers on order to enhance the public transport that is railway
system and to reduce the wastage of time. This will also enhance the economy of Pakistan. More over our
scope is to increase confidence level of people to travel in Railway rather busses, air etc. we are providing
the customers the latest equipment like Graphical User Interface In order to attract the customer to Rail
Travel.
8|Page
zahidmehboob@live.com
2.4 System Overview
The system determines the problems and produces the best results in order to facilitate the
customer’s requirement. The online web application assure the efficiency and less consumption of time
moreover the phone application solves the passengers queries and also saves time as they need not to visit
the Station.
The system provides the daily information to the Administrator about the ticket selling on regular
basis.
i. http://en.wikipedia.org/wiki/Pakistan_Railways
ii. http://www.pakrail.com/
iii. http://www.pakistanrail.com/
9|Page
zahidmehboob@live.com
2.6.1 Acronyms and Abbreviations
PR – Pakistan Railway
NTES – National Train Enquiry System
IVRS – Interactive Voice Response system
PRS – Passenger Reservation System
GUI – Graphical User Interface
DBMS – Database Management System
2.7.1 Information
Zahid Mehboob
Contact # 0321-5020706
Tahir Ayoub
Conatct # 0321-9569264
Email Address:
Contact # 0345-5112812
10 | P a g e
zahidmehboob@live.com
2.7.2 Coordination
Ticket Seller
Security In charge :
Sponsor:
The sponsor of this project is Pakistan Railway (PR)
Developers:
Zahid mehboob
Users:
Employees working in the organization
Passengers travelling by PR
Security Authorities
Computer:
Intel Pentium 4 is used and computers are interconnected to each other through LAN.
11 | P a g e
zahidmehboob@live.com
2.8.3 Input/output
Keyboard and mouse the primary I/O devices were used. Along with touch screens.
2.8.4 Processing
correctly.
2.8.5 Security
Security is provided by the high resolution cameras and scanners like metal detectors. Security is
12 | P a g e
zahidmehboob@live.com
2.9 System Interaction
The system assures the efficiency performance by using web application in order to
calculate the fares and route costs of travelling. Phone application for reservance is another
In current system the customer is bound to visit the station inorder to get any kind of
information. Moreover there is no record of the passengers and no telephone facility to facilitate
the customers queries. In web site there is no efficiency of calculating fares for multiple
destinations.
13 | P a g e
zahidmehboob@live.com
2.9.4 Performance Objectives
Our enhanced version of the software will ensure the data redundancy of the passengers
and their travel record. Web site will ensure the time safety and will facilitate the passenger to
get Up-to-date information with respect to trains. Telephone facility will increase the customer
relations with the railway staff. This will motivate people to prefer trains rather busses or air etc.
It is assumed that if a person’s is using the web application s/he should be well aware to
use the internet in efficient manner. And using telephonic conveyance there must be availability
of a valid telecom network. One should know how to use GUI.
2.10.1 Methodology
While this system we analyzed the various drawbacks of current system and tried to
overcome these problems by using simple but latest technologies like web application.
Introducing GUI and telephone department and increasing Security using Scanners. Medical
Department is a new concept that is not yet applied in Railways but our project introduces this
concept to meet any kind of emergency or taking care of patients or other unable persons.
The system provides an easy way to have telephonic conversation mechanism in order to
reduce the communication Gap also there is an attractive web site to view the schedule of the
train. Once the system is established there is no need of hiring more personals rather the system
itself will handle most of the operations. We have put cost in consideration and decided to
introduce the GUI concept which is a new feature to provide the attractive source of interaction.
14 | P a g e
zahidmehboob@live.com
2.10.3 Recommendation
Security and safety of the database is recommended also the GUI devices are placed in
such placed where there is no threat of theft. Security cameras should also be working properly.
All the services like web services and telephonic services should be available round the clock.
Security department should be active all the time in order to meet any kind of emergency.
Security checks like scanner should be available more than one. Only authorized staff is allowed
to access private things like database web server etc.
The modern concept of GUI is introduced that has the dynamic map installed and also
shows the current location of the train, its route and the schedule of departure/Arrival. It also has
a touch screen facility. There is also a web application that facilitates the customer who can use
net while sitting in his home. Moreover customer care department includes medical department
which has well qualified doctors and their team who are ready to meet any kind of emergency or
any patient. Also there is is a luggage department which saves the luggage of passengers under
strict environment. It not only allows luggage security rather passengers get free from the tension
of any kind of theft. This luggage department allows to transport goods from one place to
another with ease safety and security. This will be done with the generation of a coupen which
will be handover to the customer and the receiving party with the help of internet.
15 | P a g e
zahidmehboob@live.com
2.11.2 Improvements
Improvements are made in almost every aspect of the Railway. As it is well known that
current condition of railway presents a picture of highly unreliable and discomfort environment.
Major improvements includes
Our proposal is no doubt a bit expensive but it will ensure the reliability and customer’s security
which in turn not only make economic growth but also attract people to travel more by Rail.
3.12 Impacts
The proposals will put a great impact on the economy growth. The web application and telephone
services will save people as well as employee’s time. The dynamic map in GUI will also attract people to
have a clear understanding of their source and destination. The dynamic map concept will attract more
and more customers and thus this will grow the business of organization.
16 | P a g e
zahidmehboob@live.com
3.12.1 Equipment Impacts
There is a web system that keeps the customers and staff interconnected and upto date.
The system made by keeping in view the facility of customers so it is very user friendly so
there is no need of extra knowledge and information.
It is only applicable while viewing the website or making a phone call to get information.
17 | P a g e
zahidmehboob@live.com
3.12.6 Site or Facility Impacts
No Impact.
Security is visualized while accessing the database or by paying online fares also in
Scanning System.
Our proposals will increase the customer growth which in turn leads to economic growth
of Organization.
18 | P a g e
zahidmehboob@live.com
Domain model
19 | P a g e
zahidmehboob@live.com
1
Administrator
Staff
-Checks
*
1 -Monitor
1..* +handle
Controlling
*
*
Invoice Detail Has
Department
1
1
1 1 1 1 1 1
1
1 1 1 1 1
CustomerCareDept
Inventry TicketSelling SecurityDept Luggage TrainControlDept
1
1
1
Controls
*
1
*
Train
Invoice
1 1 1 1
1 1 1 1
1..*
Passenger
Ticket * 1
*
-Buyer
20 | P a g e
zahidmehboob@live.com
Software Risk Management Plan
21 | P a g e
zahidmehboob@live.com
4.0 Introduction
4.1 Identification
4.2 Objectives
A. The Project Management Plan (PMP, CIIT-Spring10-392-A) includes project-level
objectives for risk management
B. This Risk Management Plan has additional objectives within that framework:
1. To implement a methodology for identifying risks:
The failure of security like cameras, Metal Detector Scanner etc.
The failure of purchased device for Metal Detector Scanners, security cameras, GUI
devices etc
The failure of maintenance data on daily bases.
Corruption of Database
Medical Emergency
If the security or maintenance staff left suddenly due to any valid reason.
22 | P a g e
zahidmehboob@live.com
`
We will minimize the above stated problems by hiring more and more graphic developers
and try to use a high quality better equipped GPRS device so that there will be no risk of loss of
developer or the problem in the technology.
23 | P a g e
zahidmehboob@live.com
4.7 Project Risk Tracking Approach
We have a proper methodology of tracking risk and have different contingency plan such as
if the organization falls into financial crises. There is another plan to solve that issue if that GUI
activated device fails due to any reason we have another device which is of other brand. In this
way we can also check the quality of the device.
ROLE RESPONSIBILITY
Program Management Provide consultation and mentoring on an integrated risk
Consultant management methodology
Provide consultation and mentoring on a comprehensive suite of
risk management tools
Facilitate on-going project risk reporting for all projects
Act as liaison to ensure effective communication between the
agencies and the Georgia Technology Authority
Team Member Actively pursue the identification of risks.
Report identified risks.
Provide input into possible mitigation strategies
Project Manager Ensure contract deliverables are met in accordance with the
contract
Conduct comprehensive project risk assessment to indicate
accurate project risk status
Establish formal risk management plan
Present project risks as required to senior management
Ensure risk mitigation deadlines are calculated as efficient as
possible, established and adhered to
Develop and report progress for risk management tasks
24 | P a g e
zahidmehboob@live.com
ROLE RESPONSIBILITY
Risk Manager Oversee the Risk Management Process
Maintain risk Management Plan
Maintain Risk Assessment Report (RAR)
Support project communication of risks
Support project risk reviews
Establish and maintain risk management facilities in the Project
Management Database
Track Lessons Learned on risks
Provide reports and facilitate meetings for risks and risk
response action items
Support executive level reporting of risks
Risk Owner Maintain Risk Reports for risks within ownership
Perform qualitative analysis for risks within ownership
Monitor risks within ownership
Conduct Lessons Learned sessions for risks within ownership
Configuration Manager Establish configuration control numbering for risks
Maintain configuration control for all risk documentation
Identify risks to configuration management
Quality Assurance Ensure risk management procedures are followed in accordance
(Oversight) with the Risk Management Plan.
Provide recommendations and suggestions for improvement of
Risk Management Plan
Verify use of risk management methodology and compliance of
risk management documentation with standards
Identify risks to quality
25 | P a g e
zahidmehboob@live.com
Online Purchasing Problem
Risk ID: P-3 Probability: Low Severity: High
DESCRIPTION:
There may be a risk that the customer who is purchasing product on net may face the
security crises office credit card.
ANALYSIS:
There are many hackers on the net who hack the information related to the customer on the
site. Which may consist of the users logging password or the credit card number.
PLAN:
The only solution to reduce this risk to high a networking developer who have an experience
to control hacking.
There may be a risk that the device on which the dynamic graph application is being implemented
may no work properly or may get fail.
ANALYSIS:
The failure of the devices will cause a delay in the submission of the product. As we have to
search for another quality device which is best suited for this type of application. This will
definitely increase the cost of the overall system.
PLAN:
The plan to solve the risk is to initially search three devices of different companies with
almost same prices. If one device fail there is an option to use any of the other two devices.
26 | P a g e
zahidmehboob@live.com
Requirement Risk
Risk ID: P-5 Probability: High Severity: High
DESCRIPTION:
The requirement of different stake holder in the organization continuously changes. As they are not
very much aware of the computers related information. The continuous change in the requirement may
lead to the failure of the project.
ANALYSIS:
It is the fact that the requirement of the stake holder changes at regular intervals of time.
Different stake holders may asking for the same functionality in different ways, Thus the
requirement process is to be done very effectively
PLAN:
This risk can be solved by making a team of highly professional and highly qualify
requirement engineer which solve these issues related to the requirement stake holder by taking
interviews and meeting with the stakeholders. This problem can also be solved by doing
brainstorming.
27 | P a g e
zahidmehboob@live.com
5 Requirement Collection:
In order to get well aware of what we are going to do in our, we conducted a series of
meetings with our supervisor Sir.Saif-ur-Rehaman Khan and our teacher including sir Tahir
Mustafa Madni. By conducting personal meetings with our friends and developing a questioner
we gather the thoughts of students that what they think of current Railway and what kind of
improvements are necessary to enhance current railway system.
28 | P a g e
zahidmehboob@live.com
i. Functional Requirement
Train information and Route of train must be scheduled before entering data in GUI.
The system should be able to create staff account.
The system should be able to create customer account foe online use only.
The system should be able to add a new passenger record.
The system should be able to deactivate the staff record.
The system should be able to add record for customer ticket reservation.
The system should be able to search customer record.
The system should be able to edit customer record.
The system should be able to edit staff record.
The system should be able to add new customer complain.
The system should be able to make online payment for customers.
The system should be able to tell status of Boogie.
The system should be able to generate invoice.
The system should be able to save and retrieve data when required.
Data backup
Quick ticket generation
Interactive interface
User friendliness
Easy maintenance
29 | P a g e
zahidmehboob@live.com
7 Requirement Conflict Resolution
a. Conflict
C 1: It may happen that at same time two trains may follow the same
route hence there are chances of collision and other mishaps.
C 2: It also happens in some cases the luggage of passengers can get
interchanged or get lost.
C 3: Time scheduling of train route may not be properly understood
by the passengers hence conflict may occur which results in loss of
train.
b. Conflict Resolution:
30 | P a g e
zahidmehboob@live.com
8 Requirement Prioritization
High priority is given to Database because it is not only handling the passenger
and staff record also it is maintaining a long history of passengers, their luggage
and other useful information.
High priority is given to our security system because it manages security in entire
station in form of various departments moreover security to passenger luggage
and personals is also provided.
High priority is given to train scheduling time table ensuring the two trains don’t
collide.
31 | P a g e
zahidmehboob@live.com
8.2 Prioritization Mechanism
i. High priority
High priority is given those requirements which are very important for working of this
system. Without these requirements our system will be useless also highest possible priority
is given to user and business requirement.
Medium priority is assigned to those requirements which if present will make the
performance of system better. The functional requirements are given the level of medium
priority.
Low priority is assigned to those requirements which have nothing to do with the system
but can be needed for help at any time. The non-functional are at the last level of priority.
32 | P a g e
zahidmehboob@live.com
Software Process Model And
Project Schedule
33 | P a g e
zahidmehboob@live.com
Process Model using Gantt chart
Bussiness Modeling
SRS
Domain Model
Risk Management
Feasibility Analysis Start Date
VORD Method Duration ( Days)
Formal Specification
Designing
Implimentation
Testing
Deployment
34 | P a g e
zahidmehboob@live.com
Software Requirement Specification (SRS)
35 | P a g e
zahidmehboob@live.com
11.Introduction
11.1 Purpose
All railway companies try to attain more regular and reliable train services, in order to be able to
offer their customers a higher reliability and flexibility. The present, expensive, strategy is increasing”
physical” capacity. A more cost effective alternative is to first, as far as possible, improve quality in the
train control process itself. The most important factor in this process is the train dispatcher, who from a
control centre supervise (monitor and control) the movements of trains. The dispatchers chances to, in an
active way, plan and control the train traffic is often crucial for how different disturbances effect train
delays. We present a brief overview of existing knowledge and research and some important findings
from a survey based on a set of interviews with dispatchers and train traffic experts. Also indicated are
further studies necessary in order to, at the end, be able to successfully implement a system of this kind.
This document has same priority for all the requirements. In the starting, there is a view
about Pakistan’s Current Railway System. Later in the document the system is analyzed in detail.
Web Application
Security
Developers
Touch Screen
GUI (Graphic User Interface)
PR – Pakistan Railway
PRMS- Pakistan Railway Management System
DBMS- Database Management System
NTES – National Train Enquiry System
IVRS – Interactive Voice Response system
PRS – passenger reservation system
Dr – Doctor
GUI- Graphical User Interface
PR M.S - Pakistan Railway Management System
CGI-Computer Generated Imagery
ODBC-Open Database Connectivity
36 | P a g e
zahidmehboob@live.com
11.4 Intended Audience and Reading Suggestions
Developers/Tester/Document Writer:
Zohaib Sarfraz
Tahir Ayoub
The Users:
Pakistan Railway System (Employees)
Government of Pakistan (GOP)
People of Pakistan
This document is organized in such a way that when a reader will read this document
then first she/he will get the overview of the project that what is it all about and then the purpose
of the software. The rest of this document includes the project scope, perspective, features and its
operating environment. Design and implementation constraints, user documentation,
assumptions, performance, safety, security requirements and software quality attributes.
There are some recommendations to read this document. These are written in a way that
will help to understand the overall ambition of the software. The operating environment, design
and implementation constraints are written for the developers. Any help regarding to the
software designing, testing or any other relative material are written in this section which will
help any new person if she/he is included in the middle of the project. The performance, safety,
software quality attributes and security requirement part. This requirement document contains
general information about Pakistan Railway System, main classes and functions and features.
37 | P a g e
zahidmehboob@live.com
11.5 Project Scope
Pakistan Railways (reporting mark PR) is a national state-owned rail transport service
of Pakistan. It is administered by the federal government under the Ministry of Railways. PR
provides an important mode of transportation throughout Pakistan. It is commonly referred to as
the "life line of the country", by aiding in large scale movement of people and freight throughout
Pakistan.
The software is very efficient and is able to compete all the leading software present at
market already.
The goal for this project is to facilitate the passengers to travel in a safe and
efficient manner.
Another goal of our project is to introduce and use modern technologies in order
to facilitate and enhance the current railway system.
Passenger safety is also one of the important concern in our project.
Secondly we are also providing the facility of Customer Care Center with which
any queries relating to passengers are solved also this department handle calls in
order to update and provide the asked information to the caller.\
To maintain the Passenger record, Staff record, Inventory record in database so
that the record is utilized whenever needed.
To enhance the current security system by using latest technologies like Security
cameras, Call Record, Metal detector.
In current system department Manager does not have the facility to check their
daily Sale and Daily Invoices. Our proposal makes it easy to visualize these
entities by department manager.
The Customer has the facility to reserve ticket(s) online and he can also pay
online through Credit Card.
We are provide a facility of Graphical User Interface by which it will be easy for
the individuals to look for there respective trains and the entire map of the station
and also the train routes and their corresponding timings are displayed.
11.5.1 References
i. http://en.wikipedia.org/wiki/Pakistan_Railways
ii. http://www.pakrail.com/
iii. http://www.pakistanrail.com/
38 | P a g e
zahidmehboob@live.com
11.6 Overall Description
This section will provide the complete description of our product which has the following
characteristics.
Pakistan Railway System consists of a database which contains data for all the staff and
passengers. Each customer’s data is divided into groups and subgroups so that they are organized
in a form that serves right the user. Every customer is assigned a username and passkey/Ticket#
when getting a ticket for travelling. This system provides the authorities to check maintain, add
or remove the customer record. The system will also provide the luggage scan system to save the
information relating the luggage of customers in order to provide security. The system also
facilitates the user to choose the desired class in which s/he wants to travel like VIP, economy,
business class etc. Also helps the customer to get help about the queries and problems. The
system will also facilitate the customer by having a booking on phone and s/he needs not to
waste time to get on the station and get the required information also a web protocol is provided
in order to have all descriptions and information about train, roots and timings.
39 | P a g e
zahidmehboob@live.com
Service Management System :
The service Management system provides the user to manage the services such as
Saloon choice and Classes like air conditioned sleeper, Air conditioned Parlour, Air
conditions Business, Air conditioned Lower, First class sleeper, economy. The system
will provide a facility to the customer to know the fares and timings of the concerned
train.
This system will provide the customer to have an online reservation with the usage of
Internet to access website of PR or by a phone call. A customer care representative
assigned by the management authority of Pakistan railway will be providing this facility
to the customers.
40 | P a g e
zahidmehboob@live.com
Insert Luggage info Insert type of booking
Like Weight etc Like vip, economy or business class
System administrators:
Passenger:
Customers can only use the web based application for online booking. Customer
should have domain knowledge of computers and browsing. In either case h/she will get
information on a telephone call.
Ticket Seller:
Ticket seller uses the database to add a new record. Once a ticket is sold to a
person his name, ticket number, address, train code, train time, route map, luggage
information is added to the database by the ticket seller.
41 | P a g e
zahidmehboob@live.com
11.9 Design and Implementation Constraints
Internet browser, such as Netscape 4.0 or above, or Internet Explore 4.0 or above, Sql
DBMS 2005 or above, must be installed in order to use this product.
Valid Telephone must be there to utilize the facility. GUI touch screen Interface should
be installed and maintained.
Input/output: One or two-button mouse and keyboard required. Network card required to make
communication with server possible.
Online help will be available to the users. The customer will provided by username and
password so he can check and found out the services. The customer can also have the facility of
online payments of his dues.
It is assumed that the administrator/Staff can maintain the system and the database will be
set up properly. The customer ID and PIN will be distributed in a private way even the
Administrator can’t view it. It is also assumed that the user knows the basic use of the GUI
programs and the basic operation of the computer. The Printer device is fully functional and has
the capability to print. The software and web application must be used 24/7.
42 | P a g e
zahidmehboob@live.com
11.10 System Features
We have mentioned some of the features above in section number 2.2. Following are the
features that are given high priority.
FR # 1.1
Description The System shall allow staff to create accounts with a unique
username, email, personal password and personal address
43 | P a g e
zahidmehboob@live.com
Adding a new Passenger Record
FR # 1.2
Description. The System shall allow the staff to enter a new customer record
with the unique customer ID.
Source. Staff.
Evaluation The System will verify the uniqueness of the customer ID and add
method the record in the database
FR # 1.3
Description. The System shall allow the staff to delete Passenger’s record.
Source. Staff
Evaluation The System shall search the customer record and accepts the staff
method request to delete it.
FR # 1.4
Description. The system shall allow the administrator to Deactivate the staff
record
Evaluation The system shall search the staff record and then accepts the
method request of administrator to delete it
44 | P a g e
zahidmehboob@live.com
Adding new add record for customer ticket reservation.
FR # 1.5
Description. The System shall allow the Customer to get any kind of Service
he needs regarding Railway like reservation etc.
Source. Customer
Evaluation The system shall verify the information provided by the customer
method for the order of new service
FR # 1.6
Description. The system shall allow the staff to search the customer record for
which he/she requested for
Source. Staff
Evaluation The staff shall enter the customer name / customer ID to search
method the customer record.
45 | P a g e
zahidmehboob@live.com
Edit Customer Record
FR # 1.7
Description. The system shall allow the staff to edit the customer record for
which he/she requested for.
Source. Staff
Evaluation The staff shall enter the customer name / customer ID to change
method the customer record like route, timings etc.
FR # 1.8
Description. The system shall allow the Admin to edit the staff record for
which he/she requested for
Source. Administrator
Evaluation The Admin shall search by the staff name / ID to make desired
method changing’s.
46 | P a g e
zahidmehboob@live.com
Adding New Customer Complain
FR # 1.9
Description. The System shall allow the customer to enter the complain of
service along with complain type
Source. Customer
Evaluation The System verify customer complain, its type and customer ID
method who made that complain. And the complain id recorded
automatically.
FR # 1.10
Description. The system shall allow the customer to pay his/her service dues
and bill online.
Source. Customer
Evaluation The system shall verify the customer id, his/her account no and
method the credit card no for the online payment of bills.
47 | P a g e
zahidmehboob@live.com
Users and Human Factors Requirements:
FR # 1.11
Description. The System shall allow people with minimal internet browser
experience to become users in the System and use its features and
functionalities.
Source. Customer/Staff
Evaluation The customer shall Visit The Pakistan Railway Website to create
method account and to book for any destination.
FR # 1.12
Description. The System shall allow the Staff to get all the information like
seats availability, reserved seats etc.
Source. Staff
Evaluation The system shall verify the Boogie Number and information will
method be provided to staff.
48 | P a g e
zahidmehboob@live.com
Invoice Details
FR # 1.13
Description. The System shall allow the staff to generate invoice of the
passenger.
Evaluation method The system will verify the ticket sold and then generate the
invoice which will be monitored by the Admin.
Luggage Deposit
FR # 1.14
Description. The System shall allow the staff to generate coupen for extra
luggage of the passenger.
Evaluation The system will verify the ticket sold and then generate the
method invoice which will be monitored by the Admin.
49 | P a g e
zahidmehboob@live.com
11.11 External Interface Requirements
A Graphic User Interface (GUI) with all menus, toolbars, dialog box, and buttons will be
user friendly so that the user can run the program more efficiently. The user will have all kinds
of facilities and control over the software. Moreover it will also be providing the complete map
of his desired route map and also the location of his Train with time schedule.
The “PR M.S” software includes two major hardware components: phones and regular
PC's provided with internet.
The telephone sets are used for the regular communication between the different
employees of the organization and also used by the customer of the Pakistan Railway to provide
the necessary information about the service which they wanted to acquire.
The second component involves the regular PC’s, which communicate with the server.
The server then communicates with the database. The protocol involved between the PC's and
the server is the HTTP protocol, which allows communication between the PC's and the Server.
The remote PC's, such as someone accessing the “View Train Schedule” from home using the
Internet, are able access the information through the CGI (Computer Generated Imagery). The
requests come in through the HTTP protocol, and using an ODBC (Open Database
Connectivity), the database results are returned and are given to web page. The format of the
output is displayed as web pages. Moreover, online reservation and payment can be done here.
50 | P a g e
zahidmehboob@live.com
11.11.3 Software Interfaces
MYSQL DBMS will be used to manage the database and any changes made to it. Furthermore,
the DBMS will make regular backups of the database and generate reports regularly. The server between
the client and the database will handle all communication, and the server will run on windows XP
operating system.
i. DBMS.
i. Name: MYSQL
ii. Version: 2000 or greater.
iii. Source: Microsoft.
51 | P a g e
zahidmehboob@live.com
11.11.4 Communications Interfaces
The communication between the customer and organization will be entertained through electronic
mailing, phone calls and web portal that the customer will use. The e-mail will be delivered to network
System who will forward this request to the relevant department and give an update to the customer using
the same interface i.e. e-mail. The request will be forwarded to the relevant department by the network
administrator using a Network Server Communication Protocol or an FTP server that will work upon the
request and then reply to the network administrator so that he can give a reply to the customer about the
status of his request.
In order to facilitate the employees and especially the customers, high level of performance is
required of the system. PR Management System should be able to handle a large number of staff records
and customer records without any ambiguity and redundancy. Moreover, the software should also be able
to retrieve the data as and when required by the customer and employees. The system should be well
equipped with all the basic features such as editing, updating and printing a record in order to facilitate
the user.
Safety is an important feature to be added to every software development especially for a system
having a database containing information of the whole organization. It is necessary for the database to be
safe so that in case of any accident the information on the database is safe. For this purpose, information
that has been changed by the employee is being saved on an online encrypted server which can be
retrieved by the authorized officials anytime the system is crashed or the database is corrupted. This
information can be downloaded directly to the system as and when required.
52 | P a g e
zahidmehboob@live.com
11.12.3 Security Requirements
Security is an important part of every software development now-a-days. In web application only
authorized staff is required to enter the database to add view and delete any record. Moreover this will
ensure that privacy of a passenger is sealed. Also there is a Metal Detector Scanner to scan the persons as
well as their luggage individually.
This system can be enhance or modified later without changing in this system
DBMS should be organized by a man who is fully expert in this system and familiar with
SQL. This system should be given back to the developers after every 2 years for the maintenance
and checking of its correctness. This system is made for use in the territory of Pakistan only and
is equipped with both the English and Urdu language.
53 | P a g e
zahidmehboob@live.com
Function Category List with attributes
54 | P a g e
zahidmehboob@live.com
12.1 Function Category List
Basic Function
Payment Functions
55 | P a g e
zahidmehboob@live.com
System Attributes
56 | P a g e
zahidmehboob@live.com
Ref # Function Category Attribute Detail and Category
Constraints
R.3.1 Adding/ Evident Fault tolerance System update Must
deleting record
passenger
Record
R.4 Passenger Evident Fault tolerance Information should Must
Equipment Info be right
Fault Must
Tolerance Staff should be
allocated to the
departments
according to
specialty and needs.
57 | P a g e
zahidmehboob@live.com
Ref # Function Category Attribute Detail and Category
Constraints
R.11 Adding records Evident Fault tolerance System update Must
of trains record
R.12 Information Frill Fault tolerance The information Want
about free train, should be correct
boogie# and
seats#
R.13 Displaying Evident Response Time 10 seconds Must
Schedule of
trains Fault Correct Must
Tolerance overview of
trains
schedule
R.13.1 Print Schedule Evident Response time 5 second Want
zahidmehboob@live.com
Ref # Function Category Attribute Detail and Category
Constraints
R.19 Data Retrieval Hidden Response time 5 seconds Must
Data can be
retrieved when ever
desired
R.20 System displays Evident Interface Form based Must
whether metaphor colorful Want
updated and
headline news
R.21 System should Hidden Fault tolerance System should know Must
resolve train the timing of every
clashes train
R.22 Searching Evident Response time 10 seconds Must
function System should allow
user to search train
attribute as well as
passengers
R.23 Creating Hidden Fault tolerance Error free backup Must
Backup
Response Time
3 seconds Must
Interface
metaphor Form based Want
59 | P a g e
zahidmehboob@live.com
VORD Method
60 | P a g e
zahidmehboob@live.com
13.1 VIEW POINTS
61 | P a g e
zahidmehboob@live.com
Administrator
Reference Administrator
Attributes Username
Password
Events Start System
Close System
Webhost
Monitoring
Services Add Staff
Remove Staff
Edit Staff
Search Staff Record
View Train Attributes
Manage New train
Manage new Products
Remove Products
Edit Product (In case of repairing)
View Call Records
Monitor Video Records
Sub VPs No VPs
Department Manager
zahidmehboob@live.com
Manage Staff manager
Provide Inventory
Sub VPs Administrator
Staff Manager
Reference Staff Manager
Attributes Username
Password
Maintained Record
Events Monitor Staff
Assign Staff duty
View Online booking
View services
Services Add Staff
Edit Staff
Remove Staff
Attendance Record
Search Staff Record
Sub VPs Administrator
Staff
Reference Staff
Attributes StaffID
Name
Password
Department
Events Handle Staff
Handle Online booking
Manage/Provide Services
Services Add passenger/Staff
Edit passenger/Staff
Remove passenger/Staff
Search passenger/Staff Record
Sub VPs Staff Manager
63 | P a g e
zahidmehboob@live.com
Ticket Manager
Ticket Seller
64 | P a g e
zahidmehboob@live.com
Staff/Passenger
Reference Staff/Passenger
Attributes ID
TicketId
Ticket Holder
Events View Webpage
View Services
Book ticket
Services Online Booking
Online Paying
Search services Records
View Dynamic Map
Sub VPs No VPs
Security Manager
65 | P a g e
zahidmehboob@live.com
Train Control Manager
Medical Department
Reference Medical Staff
Attributes Username
UserId
Events Monitor Passenger/Staff
Provide necessary First Aid
Services Ambulance
First Aid
Allocate necessary medical resources
Sub VPs Administrator
66 | P a g e
zahidmehboob@live.com
Luggage Department
13.2 SERVICES
Add Staff
67 | P a g e
zahidmehboob@live.com
Remove Staff
Edit Staff
68 | P a g e
zahidmehboob@live.com
Search Staff
Provider
69 | P a g e
zahidmehboob@live.com
Add New Inventory
Remove Inventory
70 | P a g e
zahidmehboob@live.com
View Call Records
71 | P a g e
zahidmehboob@live.com
Online Booking
Online Payment
72 | P a g e
zahidmehboob@live.com
Dynamic Map
73 | P a g e
zahidmehboob@live.com
Edit Department
Provide Inventory
74 | P a g e
zahidmehboob@live.com
Luggage Deposit
Medical Department
75 | P a g e
zahidmehboob@live.com
Formal Specification Using Z- Language
76 | P a g e
zahidmehboob@live.com
RailCop Pakistan
Staff : P STAFF
Staff_ID:P S_ID
Staff_Name : P STAFF_NAME
Password : P PASSWORD
Staff_Authorization : STAFF_NAME (S_ID Password)
Ticket : P TICKETS
Ticket_Id :P T_ID
Ticket_Name :P (TRAIN_NAME TRAIN_ID)
TicketSold : seats PASSENGERS
SoldTo : P P_ID
Seat : P SEAT
Status : STATUS
Luggage_Id: T_Id P_Id
Passenger : P PASSENGER
P_Name : P P_NAME
Passenger_Id : P P_ID
Buy: TICKET SEAT
Passenger_Ticket: P_NAME T_ ID
Train : P TRAIN
Train_Name : P TRAIN_NAME
Train_Id : P TRAIN_ID
Route : TRAIN_ID TICKET
Train_Type : P Type
Department : P DEPARTMENT
Dept_Name : P DEPARTMENT_NAME
Dept_Id : P DEPT_ID
Manager : DEPARTMENT STAFF_NAME
Inventory : P INVENTORY
Inventory_Name : P INVENTORY_NAME
Inventory_Id : P INVENTORY_ID
Inventory_Price : P INVOICE
Inventory_Dept : INVOICE DEPARTMENT
Report : P REPORT
77 | P a g e
zahidmehboob@live.com
Staff_Name = dom Staff_ID dom Password
Initialization
78 | P a g e
zahidmehboob@live.com
Add_Staff
Name ? : STAFF_NAME
Staff_Id ? : S_ID
Password ? : PASSWORD
79 | P a g e
zahidmehboob@live.com
Add_Inventory
Name? : INVONTERY_NAME
Inventory_Id? : INVENTORY_ID
Inventory_Price? : INVOICE
OUTPUT! : INVOICE
80 | P a g e
zahidmehboob@live.com
Remove_ Staff by S_ID
Staff_Id ? : S_ID
Password? : PASSWORD
Status ::=Deactivate
81 | P a g e
zahidmehboob@live.com
Add_Passenger Info
Name ? : P_NAME
Passenger_Id ? : P_ID
Password ? : PASSWORD
Luggage_id ? : Luggage_Id
Search Passenger_by_Name
Name? P_Name
Output!= Passenger
NewSID ? ∉ SID
82 | P a g e
zahidmehboob@live.com
Search Passenger_by_Id
Id? Passenger_Id
Output!= Passenger
NewSID ? ∉ SID
Search Staff_by_Name
Name? Staff_Authorization
Output!= Staff
NewSID ? ∉ SID
Search Staff_by_Id
Id? Staff_Authorization
Output!= Staff
NewSID ? ∉ SID
83 | P a g e
zahidmehboob@live.com
Add_Department
Name? : DEPATMENT_NAME
Dept_Id? : DEPT_ID
Output! = Invoice
84 | P a g e
zahidmehboob@live.com
DepartmentAlreadyExist
85 | P a g e
zahidmehboob@live.com
StaffRecordAlreadyExist
PassengerRecordAlreadyExist
Pass_Id? Passenger_Id
Output1! = “Passenger_Id already exist”
86 | P a g e
zahidmehboob@live.com
Success
Output! : REPORT
RecordNotFound
87 | P a g e
zahidmehboob@live.com
StaffInvalidEntry
Output2! = REPORT
88 | P a g e
zahidmehboob@live.com
ROBUST VERSION
89 | P a g e
zahidmehboob@live.com
Object Oriented Design
90 | P a g e
zahidmehboob@live.com
15.1 Project Scope
The goal for this project is to facilitate the passengers to travel in a safe and
efficient manner.
Another goal of our project is to introduce and use modern technologies in order
to facilitate and enhance the current railway system.
Passenger safety is also one of the important concern in our project.
Secondly we are also providing the facility of Customer Care Center with which
any queries relating to passengers are solved also this department handle calls in
order to update and provide the asked information to the caller.
To maintain the Passenger record, Staff record, Inventory record in database
so that the record is utilized whenever needed
To security system by using latest technologies like
Security cameras, Call Record, Metal detector.
In current system department Manager does not have the facility to check their
daily Sale and Daily Invoices. Our proposal makes it easy to visualize these
entities by department manager.
The Customer has the facility to reserve ticket(s) online and he can also pay
online through Credit Card.
Medical department is introduced to meet any kind of emergency and mishaps
and to facilitate the passengers who are unable of any body part or in any kind of
disease.
Luggage department is provided in order to transport goods from one place to
another. Extra payments is due on extra weighted luggage.
We are providing a facility of Graphical User Interface by which it will be easy
for the individuals to look for there respective trains and the entire map of the
station and also the train routes and their corresponding timings are displayed.
91 | P a g e
zahidmehboob@live.com
15.1 Noun Extraction Method
1) Passengers
2) Customers
3) Inventory
4) Ticket Seller
5) Metal Detector
6) Administrator
7) Customer Manager
8) Department Manager
9) Security Manager
10) Invoice
13) Security
18) Website
92 | P a g e
zahidmehboob@live.com
Categorization Method
External Entities Passenger, Staff, Metal Detectors, Credit Card, Security Cameras.
Organizational
Units
Structures
1. Retained Information
2. Needed Services
3. Multiple Attributes
4. Common Attributes
5. Common Operations
6. Essential Requirements
93 | P a g e
zahidmehboob@live.com
Potential Characteristics
Object/Classes
Staff 1,2,3,4,5,6
Administrator 1,2,3,5,6
Passengers 1,2,3,4,5,6
Department 1,2,3,4,5,6
Department 1,2,3,4,5,6
Manager
Inventory 1,2,3,4,5,6
Daily Sale
Security 1,2,3,4,5,6
GUI 2,3,6
Scanners 2
Invoice 1,2,3,4,5,6
Credit Card 6
Online 1,2,3,6
Reservation
94 | P a g e
zahidmehboob@live.com
Verb Or Verb Clause Extraction Method
Our project scope and SRS provides the following verb or verb clauses
Data is located and stored in SQL database.(For all classes above except (10, 13)
95 | P a g e
zahidmehboob@live.com
15.3 CRC Index Cards
Owner:
This verb or action belongs to the Passenger class.
Attributes:
The main important attributes are first name, last name, sex, address, religion,
NIC number, cell number and many others.
Communication:
The communication of this operation is with the online Paying and generating its invoice.
Communication:
The communication of this operation is with the online Paying and generating its invoice.
Owner:
This verb or action belongs to the Passenger class.
Attributes:
The main important attributes are first name, last name, sex, address, religion, NIC
number, cell number and many others.
96 | P a g e
zahidmehboob@live.com
iii. Entering Passenger Record:
Owner:
This verb or action belongs to the Passenger class.
Attributes:
The main important attributes are first name, last name, sex, address, religion, NIC
number, cell number and many others.
Communication:
The communication of this operation is to record data for future usage if needed for
security purpose.
Owner:
This verb or action belongs to the Passenger class.
Attributes:
The main important attributes are first name, last name, Staff_Id, password, sex, address,
religion, NIC number, cell number and many others.
Communication:
The communication of this operation is to record data for future usage if needed.
97 | P a g e
zahidmehboob@live.com
v. Adding Inventory Record :
Owner:
This verb or action belongs to the Inventory class.
Attributes:
The main important attributes are Staff_Id, Password, Dealer, Product_Id, Department
and many others.
Communication:
The communication of this operation is with the department class.
Owner:
This verb or action belongs to the every above class except (class Number 10, 13).
Attributes:
All attributes of Staff, Passenger and Inventory are in it (Shown above).
Communication:
The communication of this operation is with the (Passenger, Staff and inventory) classes.
98 | P a g e
zahidmehboob@live.com
vii. Generating the invoice :
Owner:
This verb or action belongs to the INVOICE class.
Attributes:
The main important attributes are Invoice_Id, Staff_Id, Ticket_Id, Inventory_Id and
many other.
Communication:
The communication of this operation is with the (Passenger, Staff and inventory) classes.
Owner:
This verb or action belongs to the Calls class.
Attributes:
The main important attributes are call number, date/time, passenger_Id, Place and many
other.
Communication:
There is communication with customer Care class.
99 | P a g e
zahidmehboob@live.com
ix. Security Cameras :
Owner:
This verb or action belongs to the Videos class.
Attributes:
The main important attributes are Videos number, date/time, Place and many others.
Communication:
There is communication with Security class.
Owner:
This verb or action belongs to the security class.
Attributes:
The main important attributes are Luggage scanning, Personal scanning.
Communication:
There is communication with Security class.
100 | P a g e
zahidmehboob@live.com
xi. Searching/Editing Record :
Owner:
This verb or action belongs to the Staff, Passenger, Inventory classes.
Attributes:
All attributes of Staff, Passenger and Inventory are in it (Shown above).
Communication:
The communication of this operation is with the (Passenger, Staff and inventory) classes.
Owner:
This verb or action belongs to the GUI classes.
Attributes:
The main Important Attributes are Train_Route, Locate_Map, Visualize_Station,
Train_Location and many more.
Communication:
There is communication with GUI class which is the part of customer care.
101 | P a g e
zahidmehboob@live.com
xiii. Luggage Deposite :
Owner:
This verb or action belongs to the Luggage Department.
Attributes:
The main Important Attributes are providing an easy and comfortable way of
transporting goods from one place to another. Works like cargo, and extral luggage(i.e. more
than 20kg) will be transferred to the cargo. And extra expenditure will we issued.
Communication:
There is communication with ticket department.
102 | P a g e
zahidmehboob@live.com
15.3 CRC INDEX CARDS
Responsibilities Collaborator
Passenger open the home page
Class Administrator
Responsibilities Collaborator
Enter Administrator_Id and password Staff
Monitor Staff
Passenger
Customer
Department
Videos
Calls
103 | P a g e
zahidmehboob@live.com
Invoice
Inventory
Responsibilities Collaborator
Enter username and password
Monitor Staff
Inventory
Department
Responsibilities Collaborator
Enter Staff_Id and password Staff
Sells Ticket
104 | P a g e
zahidmehboob@live.com
Class Passenger
Responsibilities Collaborator
Passenger Reserve the tickets Web Page
Class Inventory
Responsibilities Collaborator
Request base operation
Class Department
Responsibilities Collaborator
Request base operation
Class Staff
Responsibilities Collaborator
Request base operation
105 | P a g e
zahidmehboob@live.com
Class Invoice
Responsibilities Collaborator
Detail description of purchased Tickets Inventory
Staff
Passenger
Ticket(s)
Class Medical
Responsibilities Collaborator
Provide Medical aid to passenger in case of Staff
any emergency
Doctor
Monitors Staff
Passenger
Customer
106 | P a g e
zahidmehboob@live.com
Class Online Payment
Responsibilities Collaborator
Enter Email and password Passenger
107 | P a g e
zahidmehboob@live.com
etc) Reservation, Online payment
(Credit Card etc)
Rules and Policies CancelationPolicy,
LuggageMisplacePolicy,
FirstComeFirstGetPolicy,RefundPolicy
Catalogs Parts Catalogue with detail
Manual Book Repair manual, Train driving manuals,
Control Room Manuals
Records of finance, Maintenance Log, Employment
contract, work, legal Contract, Invoices
matters
Financial Instrument Stock, Inventory
and services
* Ticket Refundable policy is according to rule in which all payment will be given back
if the ticket is returned before 24 hours else half payment will be returned.
108 | P a g e
zahidmehboob@live.com
15.5 Requirement Categorization Table
zahidmehboob@live.com
DepartmentManager –
Staff
A is related to a transaction B Passenger – Ticket
Invoice – Sale
A is a transaction related to another Reservation – Cancellation
transaction B Invoice – Sale
A is next to B City – City
Boogie – Boogie
Seats – Seats
Department – Department
A is owned by B Train – RailwayMinistry
Inventory – Administrator
110 | P a g e
zahidmehboob@live.com
UML Diagrams
111 | P a g e
zahidmehboob@live.com
15.6.1.1 Class Diagram
112 | P a g e
zahidmehboob@live.com
1 Administrator
-Name : String
-NIC : Int
-Checks -Login : String Staff
-Password : char
-Address : String #S_Id : Int
+handle
-Phone # : Int -Username : String
-Password : char 1..*
#NIC : Int
* -Address : String
1 -Monitor -Phone# : Int
Controlling
*
*
Train
InvoiceDetail Department +Train_Id : Int
+Train_Route : String
-Invoice_Id : Int -D_Id : Int Has
* Generates ## of Boogies : Int
-D_Id : int -Name : String
+Train_Name : String
-Type : String
-
-D_Manager : String
* 1
1
*
Control
1 1 1 1 1 1
1 1
1 1
1
TicketHouse CustomerCare
1 1
#TIC_Id : Int -S_Id : String Luggage Security
Inventory
#S_Id : Int -Login : String -#Lug_Id : Int #S_Id : Int
#Inventory_Id : int -Login : String -Password : Int -#TIC_Id : Int TrainControl
-Login : String
-Name : String -Password : char -Sub_D_Id : Int -#P_Id : Int #Train_Id : Int
-Password : char
-Price : Float +Duty_Timings : Times -Duty_timings : Times -#Weight : float +Duty_Timings : Times #S_Id : Int
-Quantity : Int -Login : String
-Password : Int
+Trian Name : String
1
+Route : String
Controls
1 1
+Duty Timings : Times
Invoice
#TIC_Id : Int 1
#Invoice_Id : Int
#P_Id : Int
-D_Id : Int
1 1 1 1
1 1 1 1
Ticket Passenger
#TIC_Id : Int #P_ID : Int
-TrainName : String -F_Name : String
-Boggie # : int -L_Name : String
-Type : String #Route : String
-Seat # : Int #T_Id : Int
-Route : String * 1 -Phone : Int
-P_Id : Int -Lug_Id : Int
-L_Id : Int -Destination : String
-Buyer
113 | P a g e
zahidmehboob@live.com
15.6.1.2 Object Diagram
114 | P a g e
zahidmehboob@live.com
admin:Administrator
-Name : Ali
-NIC : 1234
-Login : abc
-Password : xxx staff:Staff
-Address : G-10
#S_Id : 0023
-Phone # : 1234
-Username : abc
-Password : xxx
#NIC : 67856
-Address : dhokh khabba
-Phone# : 45676
:InvoiceDetail dept:Department
:Train
-Invoice_Id : 123 -D_Id : 456
-D_Id : 99 -D_Manager : Ali +Train_Id : 453
+Train_Route : lahore
## of Boogies : 12
+Train_Name : damaka
-
tc:TrainControl
th:TicketHouse cc:CustomerCare lugg:Luggage sec:Security #Train_Id : 453
inv:Inventory #S_Id : 437
#S_Id : 789 #S_Id : 125 #Lug_Id : 000 #S_Id : 453
#Inventory_Id : 121 -Login : abc
-Login : abc -Login : abc #Tic_Id : 01 -Login : abc
-Name : camera -Password : xxx
-Password :xxx -Password : xxx #P_Id : 999 -Password : xxx
-Price : 40,000 +Trian Name : damaka
+Duty_Timings : Noon -Sub_D_Id : 564 #Weight : 30 +Duty_Timings : evening
-Quantity : 5 +Duty Timings : night
+Duty_timings : morning
:Invoice
#TIC_Id : Int
#Invoice_Id : Int
#P_Id : Int
med:MedicalDept pass:Passenger
td:TelephoneDept whd:WebHostDept gui:GUIControlDept
#Dr_Id : 0011 #P_ID : 999
#S_Id : 2243 #S_Id : 321 #S_Id : 545 -Login : abcc
-Login : abc -F_Name : Ali
-Login : abc -Login : abc -Password : xxx
-password : xxx -L_Name : Ali
-Password : xxx -Password : xxx
+# of telephones : 1000 #Route : Lahore
-
+Duty_Timings : noon #T_Id : 01
-boogie# : 6
-seat# : 65
-Luggage_Id : 000
-Destination : karachi
-Phone : 12345
:Ticket
#TIC_Id : 01
-TrainName : damaka
-Boggie # : 254
-Type : String
-Seat # : Int
-Route : Lahore
-P_Id : 999
-L_Id : 000
115 | P a g e
zahidmehboob@live.com
15.6.1.3 Component Diagram
116 | P a g e
zahidmehboob@live.com
Departments
Database
Administrator
OnlinePayment
Invoice
WebHost
Inventory
OnlineReservation
Staff
117 | P a g e
zahidmehboob@live.com
TicketSeller Invoice Passenger
AdministratorRites
OnlineReservation
customer Website
Database
OnlineReservation
OnlinePayment
Database
Website
customer
Bank
OnlinePayment
118 | P a g e
zahidmehboob@live.com
15.6.1.4 Deployment Diagram
119 | P a g e
zahidmehboob@live.com
* *
ServerDataBase WebServer
SQL/Oracle Data
wamp5_1.4.5
Base
* *
Software
*
MS Visual
Studio2008 Website
SignOut
Customer
Reserve Ticket
SignIn
Pay Via
OnlineInvoice
CreditCard
120 | P a g e
zahidmehboob@live.com
15.6.1.5 Composite Structure Diagram
121 | P a g e
zahidmehboob@live.com
Train
Engine
Source {Redifines Source}
1
1
Source {Redifines Source}
Wheels
0..16
Transmitter {Redifines Transmitter}
122 | P a g e
zahidmehboob@live.com
Staff Inventory
Customer TicketSeller
Invoice
OnlineReservation
OnlinePayment
DataBase
Administrator
OnlineInvoice
123 | P a g e
zahidmehboob@live.com
15.6.1.5 Package Diagram
124 | P a g e
zahidmehboob@live.com
Inventory
WebHost GUI
Staff
DataBase
OnlineInvoice
Bank
Invoice Customer
OnlinePayment
Ticket
OnlineReservation
125 | P a g e
zahidmehboob@live.com
Web Host
WebHost
Wamp5_1.4.5
DataBase
126 | P a g e
zahidmehboob@live.com
Online payment
OnlinePayment
DataBase
Wamp5_1.4.5
Bank
127 | P a g e
zahidmehboob@live.com
Invoice Pakage
Invoice
Inventory
Ticket
OnlineReservation
128 | P a g e
zahidmehboob@live.com
15.6.2 UML Behavioral Diagrams
129 | P a g e
zahidmehboob@live.com
15.6.2.1 Use Case Diagram
130 | P a g e
zahidmehboob@live.com
1 Login
1
0..* Online Reserve
Tickets
1
1..* Make Payment
1
Luggage Depart./
0..*
1 Deposit Boogie
Customer Luggage
0..1
Feed Back
Data
base
System
1 1 Login
1
1..*
1 Generate
Invoice
Staff
1 1..*
Handle
Customer(s)
1
1..* Admin/
1 Maintain Bank
Inventory
1 1
1..*
Train Control
Unit
1..*
Generate Ticket
1..*
Web hosting
1..*
GUI
1 1..*
Manager/ Monitor/Handle
Staff
Administrator
1..*
Manage
Inventory
131 | P a g e
zahidmehboob@live.com
15.6.2.2 Activity Diagram
132 | P a g e
zahidmehboob@live.com
i. Customer Care
Net/Pc Crash
Cry on your Luck
Equal or less than 40 KG Get into [else] Buy the Go To Search for
Train Ticket Booge Seat#
[have ticket(s)]
Luggage
Boarding
Wait for Place
Train
Luggage
departure
Goto luggage Weight for Pay for extra Pay via credit
department exact luggage weight card or cash
More than 40 KG
Go home
Cry on your Luck
133 | P a g e
zahidmehboob@live.com
iii. Reserving Ticket
Net/Pc Crash
Change yourLuck
Doctor On Train Goto Desired [else] Pick First Aid Kit Check the [else] Inform to the
boogie from cabin upcoming station
Patient
In extreme
[have FirstAidKit] emergency
Medical
Aid
Treat him/her
normally
In case of extreme
emergency call Ambulance
Give patient
required medicine
134 | P a g e
zahidmehboob@live.com
15.6 State Machine Diagram
135 | P a g e
zahidmehboob@live.com
Train Door
(protocol)
Open
Locks
Train Started
Door Lock
Ticket Generate
(Protocol)
Ticket Generate
(Protocol)
Done Done
TicketGenerate ReceivePayment PrintTicket
Done
Checked
Done
CheckLuggage WeightLuggage BoardLuggage
Done Done
AttendPhone SolveQuery
Pass
CheckTicket
Fail Done
SendHome
136 | P a g e
zahidmehboob@live.com
15.6.3 UML Interaction Diagrams
137 | P a g e
zahidmehboob@live.com
15.6.3.1 Sequence Diagram
138 | P a g e
zahidmehboob@live.com
LogIn
Sd Login
:systemDataBase
:System
Login
User Validation
Validating
Confirmed
ChangePassword
Updating
Updating
Changed
Acknowledgment
139 | P a g e
zahidmehboob@live.com
Reservation
Sd Reservation
:System DataBase
Login
Validation
User
Confirmed
Information
Detail
CheckAvalibility
Status
ReserveTickets
Update
Confirmed
TicketIdAlloted
Logout
Confirmed
140 | P a g e
zahidmehboob@live.com
Online Payment
Sd OnlinePayment
:System DataBase
Login
Validation
ReserveTicket
User Validation
Confirmed
CreditCardInformation
:Bank
Validation
Confirmation
CreditInfo
Detail
Update
confirmed
TicketReceiptGenerated
Logout
Confirmed
141 | P a g e
zahidmehboob@live.com
Deposite Luggage
Sd DepositLuggage
System :SystemDataBase
User Staff
ShowTicket
Validation
Confirmed
HandoverLuggage
LuggageDetail
Detail
List
Update
GenerateInvoice
ClearPayment
Confirmed
Copen
142 | P a g e
zahidmehboob@live.com
15.6.3.2 Communication Diagram
143 | P a g e
zahidmehboob@live.com
Online Payment
Creditcard:
Validation
1.1 Validation 1.2 Validating
1 OnlinePayment
WebApp:
UserInterface
Customer
DataBase
Deposite Luggage
LuggageDept
1.1 Depositing
1 Deposit Luggage
1.2 Updating
Staff
Customer
DataBase
144 | P a g e
zahidmehboob@live.com
Online Reservation and payment
Creditcard:
Validation
1.1 Validation
2.1 Validation
1 OnlineReservation
2 Change Password
WebApp:
UserInterface
1.2 Updating
2.2 Updating
Customer
DataBase
145 | P a g e
zahidmehboob@live.com
16 Sample Test Cases
146 | P a g e
zahidmehboob@live.com
Add Passenger Record
Method Add Passenger Record
Description This function will add the passenger record to the DataBase.
Description This function will delete the passenger record from the DataBase.
Description This function will add the staff record to the DataBase.
147 | P a g e
zahidmehboob@live.com
Update Staff Record
Method Update Staff Record
Description This function will update the staff record to the DataBase.
Description This function will search the passenger record from the DataBase.
148 | P a g e
zahidmehboob@live.com
Reserve Ticket
Description This function will reserve the ticket for the passenger and add the
information to the datanbase.
Description This function will add the luggage detail of the passenger to the
database and generate a coupen having the coupen number and all
luggage detail provided.
149 | P a g e
zahidmehboob@live.com