Uses of Class
bcu.cmp5332.bookingsystem.model.Flight
Packages that use Flight
-
Uses of Flight in bcu.cmp5332.bookingsystem.model
Methods in bcu.cmp5332.bookingsystem.model that return FlightModifier and TypeMethodDescriptionFlightBookingSystem.getFlightByID
(int delId) Retrieves a flight by its ID.Booking.getOutboundFlight()
Retrieves the outbound flight of the booking.Booking.getReturnFlight()
Retrieves the return flight of the booking.Methods in bcu.cmp5332.bookingsystem.model that return types with arguments of type FlightModifier and TypeMethodDescriptionFlightBookingSystem.getFlights()
Retrieves a list of all future flights in the system.FlightBookingSystem.getFutureFlights
(LocalDate systemDate) Retrieves a list of all future flights in the system that have not departed.Methods in bcu.cmp5332.bookingsystem.model with parameters of type FlightModifier and TypeMethodDescriptionvoid
Adds a flight to the system.void
FlightBookingSystem.issueBooking
(Customer customer, Flight flight, LocalDate bookingDate) Issues a booking for a customer on a flight with the specified booking date.void
FlightBookingSystem.removeFlight
(Flight flightToDelete) Removes a flight from the system.void
Booking.setOutboundFlight
(Flight outboundFlight) Sets the outbound flight of the booking.void
Booking.setReturnFlight
(Flight returnFlight) Sets the return flight of the booking.Constructors in bcu.cmp5332.bookingsystem.model with parameters of type Flight