Class MovieGoerBoundary
java.lang.Object
Boundary
MovieGoerBoundary
- All Implemented Interfaces:
Base,BaseBoundary
- Author:
- harvi
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BookingBoundaryA booking boundary object to process booking related input and output(package private) BookingManagerA booking manager object to manage bookings(package private) MovieBoundaryA movie boundary object to process movie related input and output(package private) MovieManagerA movie manager object to manage movies(package private) ReviewBoundaryA review boundary object to manage review and rating related input and output -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMethod to display menu and get MovieGoer choicevoidMethod to print top 5 movies revenuevoidMovieGoerOperations(String userID) Method to perform MovieGoer operations movie goer choicevoidMethod to set boundariesvoidMethod to set the ManagersvoidwriteReview(String userID) Method to write movie reviewMethods 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
-
movieManager
MovieManager movieManagerA movie manager object to manage movies -
bookingManager
BookingManager bookingManagerA booking manager object to manage bookings -
movieBoundary
MovieBoundary movieBoundaryA movie boundary object to process movie related input and output -
bookingBoundary
BookingBoundary bookingBoundaryA booking boundary object to process booking related input and output -
reviewBoundary
ReviewBoundary reviewBoundaryA review boundary object to manage review and rating related input and output
-
-
Constructor Details
-
MovieGoerBoundary
public MovieGoerBoundary()
-
-
Method Details
-
setManagers
public void setManagers()Method to set the Managers- Specified by:
setManagersin interfaceBase
-
setBoundaries
public void setBoundaries()Method to set boundaries- Specified by:
setBoundariesin interfaceBaseBoundary
-
writeReview
Method to write movie review- Parameters:
userID- The userID
-
listTop5MoviesRevenue
public void listTop5MoviesRevenue()Method to print top 5 movies revenue -
getMovieGoerMenuChoice
public int getMovieGoerMenuChoice()Method to display menu and get MovieGoer choice- Returns:
- The choice
-
MovieGoerOperations
Method to perform MovieGoer operations movie goer choice- Parameters:
userID- The userID- Throws:
ParseException- If there's error
-