You are on page 1of 13

Use case diagram:

Railway Reservation System

updating information and


display availability of tickets

<<uses>>
Railway
Reservation staff
Database
Train Information

Processing Reservation form

<<extends>>

issuing of tickets

Sequence diagram of train information


railway staff form database printer

1: enter the source station

2: enter the destination station

3: enter the train no.

4: enter the train name

5: submit the details

6: process the info

7: display the train info

Collaboration diagram of train information


1: enter the source station
2: enter the destination station
3: enter the train no.
4: enter the train name
railway form
staff

7: display the train info


6: process the info

5: submit the details

printer
database

Activity diagram of train information


enter the source
station

enter the destination


station

enter the train


no.

enter the train


name

incorrect info

correct info

display train
information

Sequence diagram of availability of ticket


railway staff form database printer

1: enter the source station

2: enter the destination station

3: enter the class of coach

4: enter the date of journey

5: enter the train no.

6: enter the train name

7: submit the info

8: process the info

9: display the availability

Collaboration diagram of availability of ticket


1: enter the source station
2: enter the destination station
3: enter the class of coach
4: enter the date of journey
5: enter the train no.
6: enter the train name
railway form
staff

9: display the availability


8: process the info

7: submit the info

database printer

Activity diagram of availability of tickets


enter the source
station

enter the destination


station

enter class of
coach

enter the date of


journey

enter the train


no.

enter the train


name

reservation not available

reservation available

display available display not


available

Sequence diagram of processing reservation for


railway staff form database printer

1: enter the train no.

2: enter the train name

3: enter the source station

4: enter the destination station

5: enter the date of journey

6: enter the class of coach

7: enter the name

8: enter the age

9: enter the sex

10: enter the address

11: submit the info

12: process the info

13: display the amount to be paid

Collaboration diagram of processing reservation form


1: enter the train no.
2: enter the train name
3: enter the source station
4: enter the destination station
5: enter the date of journey
6: enter the class of coach
7: enter the name
8: enter the age
9: enter the sex
railway 10: enter the address form
staff

13: display the amount to be paid

12: process the info 11: submit the info

printer
database

Sequence diagram of issuing ticket


railway staff form database printer

1: enter the passenger details

2: submit the form

3: check the passenger details

4: display invalid details

5: reenter the details

6: submit the form

7: process the info

8: print the ticket

9: update the database

Collaboration diagram of issuing ticket


1: enter the passenger details
5: reenter the details
railway form
staff

4: display invalid details


3: check the passenger details
7: process the info
9: update the database
2: submit the form
6: submit the form

8: print the ticket


database printer

Activity diagram of issuing ticket


enter the train
no.

enter the
train name

enter the source


station

enter the
destination station

enter the date of


journey

enter the class


of coach

enter the no. of


passengers

enter name

enter age

enter sex

enter
address
incorrect details

print ticket

Class diagram:
Passenger Form
Name source_station
age destination_station
sex date_of_journey
address class_of_coach
no_of_passengers

get_passenger_detail()
get_train_detail()

Ticket train
ticket_no train_no
departure_time train_name
amount

calculate_fare()
print_ticket()

You might also like