Railway Reservation System
Railway Reservation System
1|P ag e
INDEX:
Topic
2|P ag e
Page No.
1.
2.
3.
4.
Problem Statement
Identification of Actors and Justification
Use Case Model
Use Case Documentation
3
4
5
6
5.
Activity Diagram
10
6.
Sequence Diagram
11
7.
Class Diagram
12
PROBLEM
SYSTEM:
STATEMENT:
RAILWAY
RESERVATION
Indian Railways provides for advance reservation on all long-distance travel. The passenger
seeking reservation of berth or seats should purchase tickets from Railway Reservation Offices.
To make an advance booking, the passenger is expected to fill in a prescribed application form
and submit it to the reservation counter with the appropriate amount.
Indian Railways wishes to develop a ticketing and reservation system. This must support
advance booking of tickets, cancellation of tickets and change of class of a ticket. All these are handled by
a Reservation Clerk.
The system will also have a querying facility that allows user to check train time-tables, fares and
availability of tickets.
3|P ag e
1. PASSENGER / TRAVELLER:
The Passenger/Traveller is a passive user-actor who initiates the process and obtains the tickets, a
goal of measurable value. The passenger enquire ticket availability and other details, reserve seats ,
berths, tickets and cancel tickets.
2. RESERVATION CLERK:
The Reservation Clerk is an active user-actor, who triggers the system and has the role of issuing
the tickets with the responsibility of collecting the correct fare amount from the passenger , which is a
measurable value. The Reservation Clerk process requisition for booking, process ticket to print and
submits ticket data for updation.
3. RESERVATION DATABASE:
The Reservation Database plays the role of system server. It processes reservation data, process
ticketing, process cancellation and update the status by date, time, etc.,
4|P ag e
c
5|P ag e
6|P ag e
7|P ag e
3. CANCELLATION:
Description: Cancelling the tickets after issuing and payment.
Primary Actor: Passenger /Traveller
Secondary Actor: Reservation Clerk
Main Flow: The passenger fills the cancellation form with the train number, date and ticket number and
submits it to the reservation clerk. The clerk cancels the reservation and updates the database. Finally the
clerk returns the money.
Pre-Condition: The passenger should have performed a reservation.
Post-Condition: The reservation database is updated after cancellation and the availability moves to the
immediate waiting list.
8|P ag e
9|P ag e
ACTIVITY DIAGRAM
10 | P a g e
SEQUENCE DIAGRAM
11 | P a g e
CLASS DIAGRAM
12 | P a g e