Class BookingBoundary
java.lang.Object
Boundary
BookingBoundary
- All Implemented Interfaces:
Base,BaseBoundary
- Author:
- harvi
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BookingManagerThe Controller Class of Bookings(package private) CineplexBoundaryThe Boundary Class of Cineplexes(package private) CineplexManagerThe Controller Class of Cineplexes(package private) MovieBoundaryThe Boundary Class of Movies(package private) MovieManagerThe Controller Class of Movies(package private) ScreenManagerThe Controller Class of Screens(package private) ShowBoundaryThe boundary class of Shows(package private) ShowManagerThe Controller Class of Shows -
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor which creates an object of class BookingBoundary -
Method Summary
Modifier and TypeMethodDescriptionvoidBookingOperations(String userID) Method to create a ticketMethod to select the cineplex of choiceMethod to view movie details or select a movie to bookMethod get total number of tickets to buygetShowDate(String cineplex, String movieID) Method to get show date from usergetShowTime(String cineplex, String movieID, String showDate) Method to get show time from uservoidMethod to set all the boundaries taken as attributes Method to set boundariesvoidMethod to set all the controllers classes taken as attributes Method to set the ManagersvoidshowBooking(String bookingID) Method to show all the details of the booking madeMethods inherited from class Boundary
getCentralManager, getInputDouble, getInputInt, getInputLine, getMasterList, getScanner, print, println, setCentralManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Base
getCentralManager, setCentralManager
-
Field Details
-
bookingManager
BookingManager bookingManagerThe Controller Class of Bookings -
screenManager
ScreenManager screenManagerThe Controller Class of Screens -
cineplexManager
CineplexManager cineplexManagerThe Controller Class of Cineplexes -
movieManager
MovieManager movieManagerThe Controller Class of Movies -
showManager
ShowManager showManagerThe Controller Class of Shows -
cineplexBoundary
CineplexBoundary cineplexBoundaryThe Boundary Class of Cineplexes -
movieBoundary
MovieBoundary movieBoundaryThe Boundary Class of Movies -
showBoundary
ShowBoundary showBoundaryThe 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:
setManagersin interfaceBase
-
setBoundaries
public void setBoundaries()Method to set all the boundaries taken as attributes Method to set boundaries- Specified by:
setBoundariesin interfaceBaseBoundary
-
getCineplexChoice
Method to select the cineplex of choice- Returns:
- the Cinema ID
-
getMovieChoice
Method to view movie details or select a movie to book- Returns:
- The movie ID
-
getShowDate
Method to get show date from user- Parameters:
cineplex- The cineplexIDmovieID- The movieID- Returns:
- The showID The showID
-
getShowTime
Method to get show time from user- Parameters:
cineplex- The cineplexIDmovieID- The movieIDshowDate- The show date- Returns:
- The showID The ShowID
-
getNumTickets
Method get total number of tickets to buy- Returns:
- Number of tickets
-
showBooking
Method to show all the details of the booking made- Parameters:
bookingID- The unique ID of the booking
-
BookingOperations
Method to create a ticket- Parameters:
userID- The unique ID of the user- Throws:
ParseException- If there's error
-