Class TicketPriceBoundary

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

public class TicketPriceBoundary extends Boundary implements BaseBoundary
A Ticket Price Boundary Object

A TicketPriceBoundary object used process all ticket price input and output

  • Field Details

    • ticketPriceManager

      TicketPriceManager ticketPriceManager
      contains 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:
      setManagers in interface Base
    • setBoundaries

      public void setBoundaries()
      Method to set boundaries
      Specified by:
      setBoundaries in interface BaseBoundary
    • getDayType

      public String getDayType()
      Method to get day type from user
      Returns:
      day type (HOLIDAY or WEEKDAY)
    • getScreenClass

      public String getScreenClass()
      Method to get Screen Class from user
      Returns:
      type of screen class (REGULAR_SCREEN or PLATINUM_MOVIE_SUITES)
    • getMovieGoerAge

      public String getMovieGoerAge()
      Method to get movie goer age group from user
      Returns:
      the movie goer age group (ADULT,SENIOR,STUDENT,CHILD)
    • getMovieType

      public String 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

      public void printAllTicketPrices(ArrayList<String> printPrices)
      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)