Sequence Diagram for the Airline Management System
Create a sequence diagram for reserving a flight in the airline management system and solve a challenge.
We'll cover the following...
Sequence diagrams are a great way to understand the interactions between different entities and objects in the system. There can be different sequence diagrams that we can create for our airline management system. In this lesson, we will create sequence diagrams for the following two interactions:
Reserve a flight: The customer reserves a flight online.
Sequence challenge: Assign a seat via
FrontDeskOfficer
.
Reserve a flight
The sequence diagram for reserving a flight should have the following actors and objects that will interact with each other:
Actor:
Customer
Objects:
SearchCatalog
,FlightInstance
,FlightSeat
,FlightReservation
,Itinerary
,Payment
,SmsNotification
, andEmailNotification
.
Here are the steps in the reserve flight interaction:
The customer searches for flights flying from an airport on a particular date.
The catalog returns a list of flights that satisfy the search query.
The customer selects a flight.
Customer creates a reservation.
Customer creates an itinerary.
System requests payment.
Customer makes payment.
Customer notified.
Note: We assume that the customer performs a valid operation and successfully reserves the seat.
Based on the order above, the sequence diagram for reserving a flight in the airline management system is given below.