Railway Reservation System

Description: This is a railway ticker,when any updation about train timings are found... it informs all the client ticker's about the update and they roll the updates.one can also roll default timings.. 

RAILWAY RESERVATION SYSTEM should be able to manage all the reservation related functions. The system should be distributed in nature. This system is divided into five zones.

NORTH ZONE
SOUTH ZONE
EAST ZONE
WEST ZONE
CENTRAL ZONE

Each zone should have same functionalities. Each zone will stores the information about train name, train schedules, availability. The administrator should be able to enter any change related to the train information like change in train name, number etc. The system should be able to reserve seat in a train for a passenger. First the clerk will check for availability for the seats in a particular train on a specified date of journey. If it is available the clerk will reserve seats. The passenger will be given a unique PNR no. The system should be able to cancel a reservation. The clerk will delete the entries in the system. The passenger can check their reservation status online by entering their PNR no. The system will display his current status like confirmed, RAC or waiting list. They are also able to see information related to the train schedules. The system should be able to print the report like it should be able to generate reservation chart, train report, reservation ticket which will have train no and name, date of journey, boarding station, destination station, person name, age, [censored], total fare and a unique PNR no. The system should be able to print the cancellation ticket which will have total fare and the amount deducted.

PURPOSE:

The purpose of this source is to describe the railway reservation system which provides the train timing details, reservation, billing and cancellation on various types of reservation namely,

Confirm Reservation for confirm Seat.
Reservation against Cancellation.
Waiting list Reservation.
Online Reservation.
Tatkal Reservation.

INTRODUCTION TO THE RAILWAY RESERVATION SYSTEM:

The Indian Railways (IR) carries about 5.5 lakhs passengers in reserved accomodation every day.The Computerised Passenger Reservation System(PRS) facilates the booking and cancellation of tickets from any of the 4000 terminals(i.e. PRS bookin window all over the countries). These tickets can be booked or cancelled for journeys commencin in any part of India and ending in any other part, with travel time as long as 72hours and distance upto several thousand kilometers. The project of PRS was launched on 15th November 1985, over Northern Railway with the installation of Integrated Multiple Train Passenger Reservation System(IMPRESS), an online transaction processing system developed by Indian Railways in association with Computer Maintenance Corporation Ltd., at New Delhi. The objective was to provide reserved accomodations on any train from any counter,preparation of train charts and accounting of the money collected. The application was implemented in 1987 Mumbai,Chennai,Kolkata,Secunderabad subsequently.

RAILWAY RESERVATION METHODS:

ONLINE BOOKING: With the help of this people can book their tickets online through internet, sitting in their home by a single click of mouse. Using their credit cards people can easily get their tickets done within minutes. There are certain charges for online booking as well.

COUNTER BOOKING: This is the oldest method of booking the tickets. The reservation counters are there at railway department from where people can get the tickets to their respective destinations.

Railway passengers frequently need to know about their ticket reservation status, ticket availability on a particular train or for a place,train arrival or departure details, special trains etc.. Customer information centers at the railway stations are unable to serve such queries at peak periods. The number of the reservation counters available to the passengers and customers are very less. On most of the reservation systems there are long queues, so it takes a long time for any individual to book the ticket. As now there are no call centers facilities available to solve the queries of the passengers.

ANALYSIS:

In Online Railway Reservation System,for booking the tickets online the intended user has to enter details like username and password. Once the username and passwords are verified then he is allowed to enter the main system wherein he can select the destination, date and no of tickets. For the purchase of the tickets he is asked for payment details (like credit card details etc). The user is also provided with a provision of canceling the reservation where in the entire amount is credited back to his account. The analysis part also comprises of the UML diagrams that boost the program.

What is JAVA ?

Java is an entire programming language resembling C or C++. It takes a sophisticated programmer to create Java code. And it requires a sophisticated programmer to maintain it. With Java, you can create complete applications. Or you can attach a small group of instructions, a Java "applet" that improves your basic HTML. A Java Applet can also cause text to change color when you roll over it. A game, a calendar, a scrolling text banner can all be created with Java Applets. There are sometimes compatibility problems between Java and various browsers, operating systems or computers, and if not written correctly, it can be slow to load. Java is a powerful programming language with excellent security, but you need to be aware of the tradeoffs.

What is JSP ?

Short for Java Server Page. A server-side technology, Java Server Pages are an extension to the Java servlet technology that was developed by Sun. JSPs have dynamic scripting capability that works in tandem with HTML code, separating the page logic from the static elements -- the actual design and display of the page -- to help make the HTML more functional(i.e. dynamic database queries). A JSP is translated into Java servlet before being run, and it processes HTTP requests and generates responses like any servlet. However, JSP technology provides a more convenient way to code a servlet. Translation occurs the first time the application is run. A JSP translator is triggered by the .jsp file name extension in a URL. JSPs are fully interoperable with servlets. You can include output from a servlet or forward the output to a servlet, and a servlet can include output from a JSP or forward output to a JSP. JSPs are not restricted to any specific platform or server. It was orignially created as an alternative to Microsoft's ASPs (Active Server Pages). Recently, however, Microsoft has countered JSP technology with its own ASP.NET, part of the .NET initiative.

What is JavaScript ?

When new technologies start, they sometimes acquire names that will be confusing in the future. That's the case with JavaScript. JavaScript is not 'Java'. JavaScript is a simple programming language that was developed by Netscape that writes commands to your browser when the HTML page is loaded. Note: you can have compatibility issues with Java Script, especially in newer versions of Browsers.

What is Java ?

Java is a simple, distributed object oriented programming language which provides the security, High performance, robustness. Java is a portable and Architectural neutral language which can be Interpreted. Java is multithreaded and Dynamic language.

About Java:

Java is a Programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java Platform. The language derives much of its Syntax from c and C++ but has a simpler object Model and fewer low-level facilities. Java applications are typically compiled to bytecode(class file) that can run on any Java Virtual machine (JVM) regardless of computer architecture.

Why Software Developers Choose Java:

Java with its versatilty, efficiency, and portability, Java has become invaluable to developers by enabling them to:

• Write software on one platform and run it on virtually any other platform
• Create programs to run within a Web browser and Web services
• Develop server-side applications for online forums, stores, polls, HTML forms processing, and more
• Combine applications or services using the Java language to create highly customized applications or services
• Write powerful and efficient applications for mobile phones, remote processors, low-cost consumer products, and practically any other device with a digital heartbeat.

Goals in creation of Java:

There were five primary goals in the creation of the Java language

1. It should be "simple, object oriented".
2. It should be "robust and secure".
3. It should be "architecture neutral and portable".
4. It should execute with "high performance".
5. It should be "interpreted, threaded, and dynamic".

Architecture of Java:

Java's architecture arises out of four distinct but interrelated technologies: 

• The Java programming language 
• The Java class file format 
• The Java Application Programming Interface 
• The Java virtual machine 

When you write and run a Java program, you are tapping the power of these four technologies. You express the program in source files written in the Java programming language, compile the source to Java class files, and run the class files on a Java virtual machine. When you write your program, you access system resources (such as I/O, for example) by calling methods in the classes that implement the Java Application Programming Interface, or Java API. As your program runs, it fulfills your program's Java API calls by invoking methods in class files that implement the Java API. 

The Java Virtual Machine:

At the heart of Java's network-orientation is the Java virtual machine, which supports all three prongs of Java's network-oriented architecture: platform independence, security, and network-mobility. 

A Java virtual machine's main job is to load class files and execute the bytecodes they contain. As you can see in Figure 1-3, the Java virtual machine contains a class loader, which loads class files from both the program and the Java API. Only those class files from the Java API that are actually needed by a running program are loaded into the virtual machine. The bytecodes are executed in an execution engine. 

Coding standard:

Java suggests set of coding standard to follow while writing java program. Coding standard helps author as well as others to better understand program. It reduce amount of debugging time considerably. Basically coding standard suggests how to name class, methods variables of different scope, package etc.

Writing a Java program:

In the Java programming language, all source code is first written in plain text files ending with the .java extension. Those source files are then compiled into .class files by the javac compiler. A .class file does not contain code that is native to your processor; it instead contains bytecodes — the machine language of the Java Virtual Machine1 (Java VM). The java launcher tool then runs your application with an instance of the Java Virtual Machine. 


Download Railway Reservation System