Class BookingBoundary

java.lang.Object
Boundary
BookingBoundary
All Implemented Interfaces:
Base, BaseBoundary

public class BookingBoundary extends Boundary implements BaseBoundary
Author:
harvi
  • Field Details

    • bookingManager

      BookingManager bookingManager
      The Controller Class of Bookings
    • screenManager

      ScreenManager screenManager
      The Controller Class of Screens
    • cineplexManager

      CineplexManager cineplexManager
      The Controller Class of Cineplexes
    • movieManager

      MovieManager movieManager
      The Controller Class of Movies
    • showManager

      ShowManager showManager
      The Controller Class of Shows
    • cineplexBoundary

      CineplexBoundary cineplexBoundary
      The Boundary Class of Cineplexes
    • movieBoundary

      MovieBoundary movieBoundary
      The Boundary Class of Movies
    • showBoundary

      ShowBoundary showBoundary
      The boundary class of Shows
  • Constructor Details

    • BookingBoundary

      public BookingBoundary()
      Default Constructor which creates an object of class BookingBoundary
  • Method Details

    • setManagers

      public void setManagers()
      Method to set all the controllers classes taken as attributes Method to set the Managers
      Specified by:
      setManagers in interface Base
    • setBoundaries

      public void setBoundaries()
      Method to set all the boundaries taken as attributes Method to set boundaries
      Specified by:
      setBoundaries in interface BaseBoundary
    • getCineplexChoice

      public String getCineplexChoice()
      Method to select the cineplex of choice
      Returns:
      the Cinema ID
    • getMovieChoice

      public String getMovieChoice()
      Method to view movie details or select a movie to book
      Returns:
      The movie ID
    • getShowDate

      public String getShowDate(String cineplex, String movieID)
      Method to get show date from user
      Parameters:
      cineplex - The cineplexID
      movieID - The movieID
      Returns:
      The showID The showID
    • getShowTime

      public ArrayList<String> getShowTime(String cineplex, String movieID, String showDate)
      Method to get show time from user
      Parameters:
      cineplex - The cineplexID
      movieID - The movieID
      showDate - The show date
      Returns:
      The showID The ShowID
    • getNumTickets

      public Integer getNumTickets()
      Method get total number of tickets to buy
      Returns:
      Number of tickets
    • showBooking

      public void showBooking(String bookingID)
      Method to show all the details of the booking made
      Parameters:
      bookingID - The unique ID of the booking
    • BookingOperations

      public void BookingOperations(String userID) throws ParseException
      Method to create a ticket
      Parameters:
      userID - The unique ID of the user
      Throws:
      ParseException - If there's error