Class TicketPrice

java.lang.Object
TicketPrice

public class TicketPrice extends Object
A Ticket Price Object

A TicketPrice object used to store all parameters about ticket price

  • Constructor Details

    • TicketPrice

      public TicketPrice(DayTypeEN dayType, ScreenClassEN screenClass, MovieGoerAgeEN moviegoerAge, MovieTypeEN movieType, double price)
      The constructor of TicketPrice object
      Parameters:
      dayType - The day type
      screenClass - The screen class type
      moviegoerAge - The movie goer age group
      movieType - The movie type
      price - The price of the ticket
  • Method Details

    • getDayType

      public DayTypeEN getDayType()
      Method to get the day type
      Returns:
      DayTypeEN the day type
    • getScreenClass

      public ScreenClassEN getScreenClass()
      Method to get the screen class type
      Returns:
      ScreenClassEN the type of screen class (PLATINUM_MOVIE_SUITES or REGULAR_SCREEN)
    • getMovieGoerAge

      public MovieGoerAgeEN getMovieGoerAge()
      Method to get the movie goer age group
      Returns:
      MovieGoerAgeEN the type of movie goer age group (ADULT,SENIOR,CHILD or STUDENT)
    • getMovieType

      public MovieTypeEN getMovieType()
      Method to get the type of movie
      Returns:
      MovieTypeEN the type of movie(BLOCKBUSTER,THREEDIMENSION or DOCUMENTARY)
    • getPrice

      public double getPrice()
      Method to get ticket price
      Returns:
      double the price of the ticket
    • setPrice

      public void setPrice(double price)
      Method to set the price of the ticket
      Parameters:
      price - the price of the ticket