Uses of Class
bcu.cmp5332.bookingsystem.model.Customer
Packages that use Customer
-
Uses of Customer in bcu.cmp5332.bookingsystem.model
Methods in bcu.cmp5332.bookingsystem.model that return CustomerModifier and TypeMethodDescriptionBooking.getCustomer()
Retrieves the customer who made the booking.FlightBookingSystem.getCustomerByID
(int id) Retrieves a customer by their ID.FlightBookingSystem.getCustomerByName
(String customerName) Retrieves a customer by their name.Customer[]
FlightBookingSystem.getCustomers()
Retrieves an array of all customers in the system.Methods in bcu.cmp5332.bookingsystem.model that return types with arguments of type CustomerModifier and TypeMethodDescriptionFlightBookingSystem.getCustomer()
Retrieves a list of all customers in the system.Flight.getPassengers()
Retrieves a copy of the list of passengers booked on the flight.Methods in bcu.cmp5332.bookingsystem.model with parameters of type CustomerModifier and TypeMethodDescriptionvoid
FlightBookingSystem.addCustomer
(Customer customer) Adds a customer to the system.void
Flight.addPassenger
(Customer passenger) Adds a passenger to the flight.void
FlightBookingSystem.issueBooking
(Customer customer, Flight flight, LocalDate bookingDate) Issues a booking for a customer on a flight with the specified booking date.boolean
Flight.removePassenger
(Customer customer) Removes a passenger from the flight.void
Booking.setCustomer
(Customer customer) Sets the customer associated with the booking.Constructors in bcu.cmp5332.bookingsystem.model with parameters of type Customer