Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
Class Diagram Assignment UML Class diagram provides a conceptual model of the system in terms of entities and their relationships. It is used for requirement
Class Diagram Assignment UML Class diagram provides a conceptual model of the system in terms of entities and their relationships. It is used for requirement capture; end-user interaction and detailed class diagrams can be used for developers. Consider that you are asked to model Airport Management System. The airport is a complex system in which thousands of domestic and international flights function every day and it needs proper planning and execution to make it a management system. In this assignment, you will need to draw a class diagram (via Draw.io website) containing the following classes with their attributes and methods as below: Classes: AirportManagement - This class contains the overall details of the airport. TicketCounter - It allows the passengers to buy the ticket and do pay for a ticket. Flight - This contains all the flight details in an Airport. Employees - Employees can be two types - Airport and Airplane Employee. This class is the parent class of two subclasses - Airport Employee and Airplane Employee AirportEmployees - This class is the child class of Employees. It describes the employees working in the airport. It contains their designation and departments like customs, ticket, food, etc. AirplaneEmployees - This class is the child class of Employee and contains the designation like Air Hostess, Pilot, etc. It indicates the employees working inside airplanes. Runway - This contains the runway details and it also tells whether the particular runway is occupied by any flights. Passengers - This class contains the passenger details. NoticeBoard - This class contains the current flights and the flights which are yet to arrive and depart on a particular day. Luggage - This class holds the details of luggage for a particular passenger Attributes: AirportManagement-AirportName, CityName, Area TicketCounter-Ticketld. PassengerId, Source, Destination, Price, Flightld. Flight - Flightld, FlightName, Capacity, StartingTime, ReachingTime, Source, Destination, Price Employees - Employeeld, EmployeeName, EmployeeSalary AirportEmployees-Designation, Department Airplane Employees-Designation Runway- RunwayNumber, FlightName, OccupiedStatus NoticeBoard - Flightld, FlightName, ArrivalTime, Departure Time, Source Destination Luggage - Luggageld, Passengerld, Flightld, NoOfLuggages Methods: AirportManagement: open -This indicates whether the airport is functioning or not and helps us to start and stop the airport functioning. TicketCounter: TicketDetailsO - This method displays the details of our ticket and the flights available along with their prices. BookTicket0 - This method is to book the ticket Flight: FlightDetailsO This method is to display all details of the flight along with the number of tickets booked for each flight. Employees : EmployeeDetailsO This method is used to display the details of the employee along with their designation. Runway: Runway Details- This method gives the runway length, flights that have reserved the runway, and the flight which is currently on that runway. isOccupied0 - It says whether the runway IS occupied or not. Passengers : PassengerDetails This method displays the entire details of the passengers in the airport. Checkin- This method is to check in to the flight. NoticeBoard: Details - This method displays the details of all the flights which are in the airport and also displays the timings and details of the flights which have departed already and which are going to arrive soon. FlightStatus- This method displays the status of a particular flight and also says if the flight is delved or departing soon and also the number of passengers. Luggage: LuggageDetails- This method displays the details of all the luggage associated with a particular passenger. LuggageStatus - This method is used to indicate the status of the luggage and says whether it is checked and shipped. There is an association relationship exists between passengers and employees because passengers need employees and employees serve passengers, but they both exist in their own space. Also, there are some classes that follow aggregation like Flight and Passengers, Flight and Notice board and Flight and Runway. Other classes like Passengers, Notice board, and runway are related to flight in some way but they can also exist without a flight and one flight can be replaced by another flight. Here passengers and luggage follow a composition relationship because luggage cannot even exist without its owner (passengers)
Class Diagram Assignment
UML Class diagram provides a conceptual model
of the system in terms of entities and their
relationships. It is used for requirement capture;
end-user interaction and detailed class diagrams
can be used for developers. Consider that you are
asked to model Airport Management System. The
airport is a complex system in which thousands of
domestic and international flights function every
day and it needs proper planning and execution to
make it a management system. In this
assignment, you will need to draw a class
diagram (via Draw.io website) containing the
following classes with their attributes and
methods as below:
Classes:
AirportManagement - This class
contains the overall details of the
airport.
TicketCounter - It allows the
passengers to buy the ticket and do pay
for a ticket.
Flight - This contains all the flight
details in an Airport.
Employees - Employees can be two
types - Airport and Airplane Employee.
This class is the parent class of two
subclasses - Airport Employee and
Airplane Employee
AirportEmployees - This class is the
child class of Employees. It describes
the employees working in the airport. It
contains their designation and
departments like customs, ticket, food,
etc.
AirplaneEmployees
- This class is the
child class of Employee and contains
the designation like Air Hostess, Pilot,
etc. It indicates the employees working
inside airplanes.
Runway - This contains the runway
details and it also tells whether the
particular runway is occupied by any
flights.
Passengers - This class contains the
passenger details.
NoticeBoard - This class contains the
current flights and the flights which are
yet to arrive and depart on a particular
day.
Luggage - This class holds the details
of luggage for a particular passenger
Attributes:
AirportManagement-AirportName,
CityName, Area
TicketCounter-Ticketld.
PassengerId, Source, Destination, Price,
Flightld.
Flight - Flightld, FlightName,
Capacity, StartingTime, ReachingTime,
Source, Destination, Price
Employees - Employeeld,
EmployeeName, EmployeeSalary
AirportEmployees-Designation,
Department
Airplane Employees-Designation
Runway- RunwayNumber,
FlightName, OccupiedStatus
NoticeBoard - Flightld, FlightName,
ArrivalTime, Departure Time, Source
Destination
Luggage - Luggageld, Passengerld,
Flightld, NoOfLuggages
Methods:
AirportManagement:
open -This indicates
whether the airport is
functioning or not and
helps us to start and stop
the airport functioning.
TicketCounter:
TicketDetailsO
- This
method displays the
details of our ticket and
the flights available
along with their prices.
BookTicket0 - This
method is to book the
ticket
Flight:
FlightDetailsO
This
method is to display all
details of the flight along
with the number of
tickets booked for each
flight.
Employees :
EmployeeDetailsO
This method is used to
display the details of the
employee along with
their designation.
Runway:
Runway Details- This
method gives the
runway length, flights
that have reserved the
runway, and the flight
which is currently on
that runway.
isOccupied0 - It says
whether the runway IS
occupied or not.
Passengers :
PassengerDetails
This method displays the
entire details of the
passengers in the airport.
Checkin- This
method is to check in to
the flight.
NoticeBoard:
Details - This method
displays the details of all
the flights which are in
the airport and also
displays the timings and
details of the flights
which have departed
already and which are
going to arrive soon.
FlightStatus-
This
method displays the
status of a particular
flight and also says if the
flight is delved or departing soon and also
the number of
passengers.
Luggage:
LuggageDetails-
This
method displays the
details of all the luggage
associated with a
particular passenger.
LuggageStatus - This
method is used to
indicate the status of the
luggage and says
whether it is checked
and shipped.
There is an association relationship
exists
between
passengers and employees because
passengers need employees and employees serve
passengers, but they both exist in their own space.
Also, there are
some classes that follow
aggregation like Flight and Passengers, Flight
and Notice board and Flight and Runway.
Other classes like Passengers, Notice board, and
runway are related to flight in some way but they
can also exist without a flight and one flight can
be replaced by another flight. Here passengers
and luggage follow a composition relationship
because luggage cannot even exist without its
owner (passengers)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started