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 BookingMenuThe constant bookingMenu.protected static MovieMenuThe constant movieMenu.protected static SettingsMenuThe constant settingsMenu. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBooking handler booking handler.voidprintRankedMoviesByBooking(boolean showBookingCount) Print ranked movies by booking.voidprintRankedMoviesByRatings(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.voidUpdate cinemas.voidupdateCinemas(String cineplexCode) Update cinemas.voidUpdate cineplexes.voidUpdate movies.voidUpdate settings.voidUpdate showtimes.intView 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
-