Académique Documents
Professionnel Documents
Culture Documents
Objectives
In this session, you will learn to:
Create
Create
Create
Create
NIIT Ltd.
the
the
the
the
Sequence diagram
Communication diagram
State Machine diagram
Activity diagram
Page 1 of 23
Page 2 of 23
Accepts the date, departure city, and destination city from the
person and checks for the availability of a seat on the requested
date.
Maintains details about the availability of seats and the seat in the
Reservation file.
Confirms the details with the prospective passenger and accepts the
remaining details.
Updates the seat availability status in the Reservation file and adds
the passenger
details to the Manifest file. The passenger is assigned a unique
Passenger Name Request (PNR) number.
Prints the ticket and gives it to the
passenger.
Collects the fare amount from the passenger.
Updates the Daily Collection file.
NIIT Ltd.
Page 3 of 23
NIIT Ltd.
Page 4 of 23
Page 5 of 23
Passenger
NIIT Ltd.
-PNR_no: long
-Ticket_no: int
-Date_of_issue: date
-Status: string
-Class: string
+getPassengerDetails()
+setPassengerDetails()
+validateDetails()
+bookTicket()
-printTicket()
+cancelTicket()
+printCancellationReceipt()
-processPayment()
-processRefund()
+checkReservationStatus()
+updateReservationStatus()
Flight Reservation
-Flight_no: string
-Date_of_flight: date
-Businessclass_availableseats: int
-Economyclass_availableseats: int
+updateSeatAvailability()
+checkSeatAvailability()
1
Flight
Aircraft
-Aircraft_name: string
-Totalseats_businessclass: int
-Totalseats_economyclass: int
+getAircraftDetails()
+setAircraftDetails()
-Flight_no: int
-From_city: string
-To_city: string
-Departure_time: time
-Arrival_time: time
-Days_of_flight: string
-Businessclass_fare: float
-Economyclass_fare: float
+getFlightDetails()
+setFlightDetails()
+matchSector()
NIIT Ltd.
Page 7 of 23
F : Flight
: Customer
1 : Enter Date, Sector, Class
FR : Flight Reservation
T : Ticket
P : Passenger
3 : checkSeatAvailability()
4 : Available Seats
5 : Flight Details
6 : Enter Booking Details
7 : bookTicket()
8 : setPassengerDetails()
9 : processPayment()
10 : updateSeatAvailability()
11 : Ticket Booked
NIIT Ltd.
Page 8 of 23
Page 9 of 23
NIIT Ltd.
Page 10 of 23
8 : setPassengerDetails()
10 : updateSeatAvailability()
9 : processPayment()
T : Ticket
7 : bookTicket()
FR : Flight Reservation
11 : Ticket Booked
4 : Available Seats
: Customer
6 : Enter Booking Details
NIIT Ltd.
F : Flight
5 : Flight Details
Page 11 of 23
Page 12 of 23
NIIT Ltd.
Page 13 of 23
NIIT Ltd.
Page 14 of 23
Waiting
Confirmed
Cancelled
NIIT Ltd.
Page 15 of 23
NIIT Ltd.
Page 16 of 23
NIIT Ltd.
Page 17 of 23
Seat available
Confirmed
Seat available
Cancel ticket
Cancel ticket
Cancelled
NIIT Ltd.
Page 18 of 23
Page 19 of 23
Update
reservation
details in the
database.
Ticket
Booking
Check whether
the required
seats/ flights are
available.
NIIT Ltd.
Page 20 of 23
NIIT Ltd.
Page 21 of 23
Check
Booking
Availability
[ Booking Available ]
Accept
Booking
Details
Process
Payment
Update
Reservation
Details
NIIT Ltd.
Page 22 of 23
NIIT Ltd.
Page 23 of 23