KEMBAR78
54 STATEsasi | PDF | Computing
0% found this document useful (0 votes)
153 views4 pages

54 STATEsasi

The document outlines statechart diagrams for a railway reservation system and a library management system. The railway reservation system includes states for user authentication, train booking, and booking confirmation or cancellation. The library management system details the process of book return, including authentication, condition verification, overdue fee management, and receipt generation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
153 views4 pages

54 STATEsasi

The document outlines statechart diagrams for a railway reservation system and a library management system. The railway reservation system includes states for user authentication, train booking, and booking confirmation or cancellation. The library management system details the process of book return, including authentication, condition verification, overdue fee management, and receipt generation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Ex-No: Date:

Aim : To draw statechart diagram for railway reservation system.

statechart diagram : A Statechart Diagram in UML represents the different states of an object
and transitions between them. It includes an initial state, intermediate active and idle states,
and a final state. Transitions occur based on events like login, inactivity, or session timeout.

Description:-Statechart Diagram Description: Train Ticket Booking System

This Statechart Diagram models the train ticket booking system’s states and transitions.

1.Start → Sign In: The user begins by signing in.

2.Authentication Check:

If successful → Proceed to search for trains.

If failed → Transition to Authentication Failed (end state).

3.Train Booking Process:

Search for trains, view schedule, and book a ticket.

Check train availability:

Available? → Generate ticket, make payment, confirm booking.

Not available? → Booking fails (end state).

4.Booking Confirmation & Cancellation:

If needed, cancel the booking, confirm cancellation, and verify.

5.End State: The process ends after booking confirmation or cancellation.

1
2
LIBRARY MANAGEMENT SYSTEM:-
Aim :-To draw statechart diagram for library management system.
Description:-The statechart diagram represents the process of returning a book in a library,
ensuring proper authentication, condition verification, and overdue fee management.
1. Login & Authentication
The process begins with the member logging in (Authenticating).
If authentication is successful, the user can proceed to submit a book.
If authentication fails, the system transitions to AuthenticationFailed, ending the process.
2. Book Submission & Verification
The user submits the book (SubmittingBook).
The system notifies the submission and checks the book's condition (CheckingCondition).
After condition verification, it updates the book record and status in the library system.
3. Overdue Fee Calculation
The system calculates any overdue fees (CalculatingOverdue).
If fees exist, the system notifies the user (NotifyingOverdue).
If no fees exist, the process proceeds to receipt generation.
4. Receipt Generation & Process Completion
A receipt is issued and generated (IssuingReceipt → GeneratingReceipt).
The receipt is then returned to the user, marking the end of the process ([*]).

3
4

You might also like