Package src.model

Class Prices

Object
Prices
All Implemented Interfaces:
Serializable

public class Prices extends Object implements Serializable
Stores and modifies all the default prices of each weight in a movie ticket
Version:
1.0
Author:
Lee Juin
See Also:
  • Constructor Details

    • Prices

      public Prices()
      Empty constructor
    • Prices

      public Prices(double defaultStandardCinemaPrice, double defautltPlatinumCinemaPrice, double defaultIMaxCinemaPrice, double defaultSeatPrice, double defaultBlockbusterMoviePrice, double default3DMoviePrice, double defaultStandardMoviePrice, double defaultChildPrice, double defaultStudentPrice, double defaultAdultPrice, double defaultSeniorCitizenPrice, double holidayPrice, double weekendPrice)
      Constructor to set the prices back to default
      Parameters:
      defaultStandardCinemaPrice - is the default standard cinema price weight
      defautltPlatinumCinemaPrice - is the default platinum cinema price weight
      defaultIMaxCinemaPrice - is the default IMAX cinema price weight
      defaultSeatPrice - is the default seat price weight
      defaultBlockbusterMoviePrice - is the default blockbuster movie price weight
      default3DMoviePrice - is the default 3D movie price weight
      defaultStandardMoviePrice - is the default standard movie price weight
      defaultChildPrice - is the default child ticket price weight
      defaultStudentPrice - is the default student ticket price weight
      defaultAdultPrice - is the default adult ticket price weight
      defaultSeniorCitizenPrice - is the default senior citizen ticket price weight
      holidayPrice - is the default holiday price weight
      weekendPrice - is the default weekend price weight
  • Method Details

    • getDefaultStandardCinemaPrice

      public double getDefaultStandardCinemaPrice()
      Gets the default standard cinema price weight
      Returns:
      The default standard cinema price weight
    • getDefaultIMaxCinemaPrice

      public double getDefaultIMaxCinemaPrice()
      Gets the default IMAX cinema price weight
      Returns:
      The default IMAX cinema price weight
    • getDefaultPlatinumCinemaPrice

      public double getDefaultPlatinumCinemaPrice()
      Gets the default platinum cinema price weight
      Returns:
      The default platinum cinema price weight
    • setDefaultStandardCinemaPrice

      public void setDefaultStandardCinemaPrice(double defaultStandardCinemaPrice)
      Sets the default standard cinema price weight
      Parameters:
      defaultStandardCinemaPrice - is the default standard cinema price weight
    • setDefaultIMaxCinemaPrice

      public void setDefaultIMaxCinemaPrice(double defaultIMaxCinemaPrice)
      Sets the default IMAX cinema price weight
      Parameters:
      defaultIMaxCinemaPrice - is the default IMAX cinema price weight
    • setDefaultPlatinumCinemaPrice

      public void setDefaultPlatinumCinemaPrice(double defaultPlatinumCinemaPrice)
      Sets the default platinum cinema price weight
      Parameters:
      defaultPlatinumCinemaPrice - is the default platinum cinema price weight
    • getDefaultSeatPrice

      public double getDefaultSeatPrice()
      Gets the default seat price weight
      Returns:
      The default seat price weight
    • setDefaultSeatPrice

      public void setDefaultSeatPrice(double defaultSeatPrice)
      Sets the default seat price weight
      Parameters:
      defaultSeatPrice - is the default seat price weight
    • getDefaultBlockbusterMoviePrice

      public double getDefaultBlockbusterMoviePrice()
      Gets the default blockbuster movie price weight
      Returns:
      The default blockbuster movie price weight
    • getDefault3DMoviePrice

      public double getDefault3DMoviePrice()
      Gets the default 3D movie price weight
      Returns:
      The default 3D movie price weight
    • getDefaultStandardMoviePrice

      public double getDefaultStandardMoviePrice()
      Gets the default standard movie price weight
      Returns:
      The default standard movie price weight
    • setDefaultBlockbusterMoviePrice

      public void setDefaultBlockbusterMoviePrice(double defaultBlockbusterMoviePrice)
      Sets the default blockbuster movie price weight
      Parameters:
      defaultBlockbusterMoviePrice - is the default blockbuster movie price weight
    • setDefault3DMoviePrice

      public void setDefault3DMoviePrice(double default3DMoviePrice)
      Sets the default 3D movie price weight
      Parameters:
      default3DMoviePrice - is the default 3D movie price weight
    • setDefaultStandardMoviePrice

      public void setDefaultStandardMoviePrice(double defaultStandardMoviePrice)
      Sets the default standard movie price weight
      Parameters:
      defaultStandardMoviePrice - is the default standard movie price weight
    • getDefaultChildPrice

      public double getDefaultChildPrice()
      Gets the default child ticket price weight
      Returns:
      The default child ticket price weight
    • getDefaultStudentPrice

      public double getDefaultStudentPrice()
      Gets the default student ticket price weight
      Returns:
      The default student ticket price weight
    • getDefaultAdultPrice

      public double getDefaultAdultPrice()
      Gets the default adult ticket price weight
      Returns:
      The default adult ticket price weight
    • getDefaultSeniorCitizenPrice

      public double getDefaultSeniorCitizenPrice()
      Gets the default senior citizen ticket price weight
      Returns:
      The default senior citizen ticket price weight
    • setDefaultChildPrice

      public void setDefaultChildPrice(double defaultChildPrice)
      Sets the default child ticket price weight
      Parameters:
      defaultChildPrice - is the default child ticket price weight
    • setDefaultStudentPrice

      public void setDefaultStudentPrice(double defaultStudentPrice)
      Sets the default student ticket price weight
      Parameters:
      defaultStudentPrice - is the default student ticket price weight
    • setDefaultAdultPrice

      public void setDefaultAdultPrice(double defaultAdultPrice)
      Sets the default adult ticket price weight
      Parameters:
      defaultAdultPrice - is the default adult ticket price weight
    • setDefaultSeniorCitizenPrice

      public void setDefaultSeniorCitizenPrice(double defaultSeniorCitizenPrice)
      Sets the default senior citizen ticket price weight
      Parameters:
      defaultSeniorCitizenPrice - is the default senior citizen ticket price weight
    • getHolidayPrice

      public double getHolidayPrice()
      Gets the default holiday ticket price weight
      Returns:
      The default holiday ticket price weight
    • getWeekendPrice

      public double getWeekendPrice()
      Gets the default weekend ticket price weight
      Returns:
      The default weekend ticket price weight
    • setHolidayPrice

      public void setHolidayPrice(double holidayPrice)
      Sets the default holiday ticket price weight
      Parameters:
      holidayPrice - is the default holiday ticket price weight
    • setWeekendPrice

      public void setWeekendPrice(double weekendPrice)
      Sets the default weekend ticket price weight
      Parameters:
      weekendPrice - is the default weekend ticket price weight