Class StaffApp
java.lang.Object
StaffApp
A Staff App Class
A StaffApp class used
perform operations related to Staff application
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCinePlex(CineplexEY cineplex) Method to add cineplexvoidaddMovies(int name, int type, int movieRating, int showStatus, int synopsis, int director, int cast) Method to add moviesvoidMethod to display staff menu and get user choicestatic StaffAppMethod to get the instance of staff App objectvoidmethod to get top 5 ranking movies by overall reviewsvoidmethod to top 5 movies by ticket salesvoidHelper method to request for user choicevoidsetTicketPrices(TicketEY ticket) Method to set ticket pricesvoidupdateMovie(MovieEY movie) Method to update movie
-
Field Details
-
sc
scanner object for user inputs
-
-
Method Details
-
getInstance
Method to get the instance of staff App object- Returns:
- The staff app object
-
ProcessStaff
public void ProcessStaff()Helper method to request for user choice -
DisplayStaffMenu
public void DisplayStaffMenu()Method to display staff menu and get user choice -
setTicketPrices
Method to set ticket prices- Parameters:
ticket- The TicketEY object
-
addMovies
public void addMovies(int name, int type, int movieRating, int showStatus, int synopsis, int director, int cast) Method to add movies- Parameters:
name- The nametype- The typemovieRating- The movie ratingshowStatus- The show statussynopsis- The synopsisdirector- The directorcast- The cast
-
getTop5RankingMoviesByTicketSales
public void getTop5RankingMoviesByTicketSales()method to top 5 movies by ticket sales -
getTop5RakingMoviesByOverallReviews
public void getTop5RakingMoviesByOverallReviews()method to get top 5 ranking movies by overall reviews -
updateMovie
Method to update movie- Parameters:
movie- The movie object
-
addCinePlex
Method to add cineplex- Parameters:
cineplex- The cineplex object
-