Package moblima.control.controllers
Class MovieBookingController
java.lang.Object
moblima.control.controllers.MovieBookingController
- Direct Known Subclasses:
CustomerController
,StaffController
The type Movie booking controller.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static BookingMenu
The constant bookingMenu.protected static MovieMenu
The constant movieMenu.protected static SettingsMenu
The constant settingsMenu. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBooking handler booking handler.void
printRankedMoviesByBooking
(boolean showBookingCount) Print ranked movies by booking.void
printRankedMoviesByRatings
(boolean showRatingCount) Print ranked movies by ratings.rankMoviesByBooking
(int maxRanking) Rank movies by booking list.rankMoviesByRatings
(int maxRanking) Rank movies by ratings list.Review handler review handler.Sets handler.void
Update cinemas.void
updateCinemas
(String cineplexCode) Update cinemas.void
Update cineplexes.void
Update movies.void
Update settings.void
Update showtimes.int
View showtime availability int.
-
Field Details
-
movieMenu
The constant movieMenu. -
bookingMenu
The constant bookingMenu. -
settingsMenu
The constant settingsMenu.
-
-
Constructor Details
-
MovieBookingController
public MovieBookingController()Instantiates a new Movie booking controller.
-
-
Method Details
-
reviewHandler
Review handler review handler.- Returns:
- the review handler
-
bookingHandler
Booking handler booking handler.- Returns:
- the booking handler
-
settingsHandler
Sets handler.- Returns:
- the handler
-
viewShowtimeAvailability
public int viewShowtimeAvailability()View showtime availability int.- Returns:
- the int
-
updateShowtimes
public void updateShowtimes()Update showtimes. -
updateMovies
public void updateMovies()Update movies. -
updateCinemas
public void updateCinemas()Update cinemas. -
updateCinemas
Update cinemas.- Parameters:
cineplexCode
- the cineplex code
-
updateCineplexes
public void updateCineplexes()Update cineplexes. -
updateSettings
public void updateSettings()Update settings. -
rankMoviesByBooking
Rank movies by booking list.- Parameters:
maxRanking
- the max ranking- Returns:
- the list
-
printRankedMoviesByBooking
public void printRankedMoviesByBooking(boolean showBookingCount) Print ranked movies by booking.- Parameters:
showBookingCount
- the show booking count
-
rankMoviesByRatings
Rank movies by ratings list.- Parameters:
maxRanking
- the max ranking- Returns:
- the list
-
printRankedMoviesByRatings
public void printRankedMoviesByRatings(boolean showRatingCount) Print ranked movies by ratings.- Parameters:
showRatingCount
- the show rating count
-