Class MovieBookingController

java.lang.Object
moblima.control.controllers.MovieBookingController
Direct Known Subclasses:
CustomerController, StaffController

public abstract class MovieBookingController extends Object
The type Movie booking controller.
  • Field Details

    • movieMenu

      protected static MovieMenu movieMenu
      The constant movieMenu.
    • bookingMenu

      protected static BookingMenu bookingMenu
      The constant bookingMenu.
    • settingsMenu

      protected static SettingsMenu settingsMenu
      The constant settingsMenu.
  • Constructor Details

    • MovieBookingController

      public MovieBookingController()
      Instantiates a new Movie booking controller.
  • Method Details

    • reviewHandler

      public ReviewHandler reviewHandler()
      Review handler review handler.
      Returns:
      the review handler
    • bookingHandler

      public BookingHandler bookingHandler()
      Booking handler booking handler.
      Returns:
      the booking handler
    • settingsHandler

      public SettingsHandler 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

      public void updateCinemas(String cineplexCode)
      Update cinemas.
      Parameters:
      cineplexCode - the cineplex code
    • updateCineplexes

      public void updateCineplexes()
      Update cineplexes.
    • updateSettings

      public void updateSettings()
      Update settings.
    • rankMoviesByBooking

      public LinkedHashMap<Movie,Integer> rankMoviesByBooking(int maxRanking)
      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

      public List<Movie> rankMoviesByRatings(int maxRanking)
      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