Class TicketPriceBoundary
java.lang.Object
Boundary
TicketPriceBoundary
- All Implemented Interfaces:
Base,BaseBoundary
A Ticket Price Boundary Object
A TicketPriceBoundary object used
process all ticket price input and output
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) TicketPriceManagercontains ticket price manager object to process all ticket price objects -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod to get day type from userMethod to get movie goer age group from userMethod to get movie type from userdoublegetPrice()Method to get ticket price from userMethod to get Screen Class from userintMethod to obtain user choice from a printed menu *voidprintAllTicketPrices(ArrayList<String> printPrices) Method to print all ticketvoidMethod to set boundariesvoidMethod to set the ManagersvoidMethod to perform operations based on ticket price menu choice (add ticket price,list ticket price,return to staff menu)Methods 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
-
ticketPriceManager
TicketPriceManager ticketPriceManagercontains ticket price manager object to process all ticket price objects
-
-
Constructor Details
-
TicketPriceBoundary
public TicketPriceBoundary()Constructor for TicketPriceBoundary object
-
-
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
-
getDayType
Method to get day type from user- Returns:
- day type (HOLIDAY or WEEKDAY)
-
getScreenClass
Method to get Screen Class from user- Returns:
- type of screen class (REGULAR_SCREEN or PLATINUM_MOVIE_SUITES)
-
getMovieGoerAge
Method to get movie goer age group from user- Returns:
- the movie goer age group (ADULT,SENIOR,STUDENT,CHILD)
-
getMovieType
Method to get movie type from user- Returns:
- the type of movie (BLOCKBUSTER,THREEDIMENSION or DOCUMENTARY)
-
getPrice
public double getPrice()Method to get ticket price from user- Returns:
- The ticket price
-
printAllTicketPrices
Method to print all ticket- Parameters:
printPrices- The arraylist of ticket prices
-
getTicketPriceMenuChoice
public int getTicketPriceMenuChoice()Method to obtain user choice from a printed menu *- Returns:
- The user selection value
-
ticketPriceOperations
public void ticketPriceOperations()Method to perform operations based on ticket price menu choice (add ticket price,list ticket price,return to staff menu)
-