Package src.model
Class Prices
Object
Prices
- All Implemented Interfaces:
Serializable
Stores and modifies all the default prices of each weight in a movie ticket
- Version:
- 1.0
- Author:
- Lee Juin
- See Also:
-
Constructor Summary
ConstructorDescriptionPrices()
Empty constructorPrices
(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 -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the default 3D movie price weightdouble
Gets the default adult ticket price weightdouble
Gets the default blockbuster movie price weightdouble
Gets the default child ticket price weightdouble
Gets the default IMAX cinema price weightdouble
Gets the default platinum cinema price weightdouble
Gets the default seat price weightdouble
Gets the default senior citizen ticket price weightdouble
Gets the default standard cinema price weightdouble
Gets the default standard movie price weightdouble
Gets the default student ticket price weightdouble
Gets the default holiday ticket price weightdouble
Gets the default weekend ticket price weightvoid
setDefault3DMoviePrice
(double default3DMoviePrice) Sets the default 3D movie price weightvoid
setDefaultAdultPrice
(double defaultAdultPrice) Sets the default adult ticket price weightvoid
setDefaultBlockbusterMoviePrice
(double defaultBlockbusterMoviePrice) Sets the default blockbuster movie price weightvoid
setDefaultChildPrice
(double defaultChildPrice) Sets the default child ticket price weightvoid
setDefaultIMaxCinemaPrice
(double defaultIMaxCinemaPrice) Sets the default IMAX cinema price weightvoid
setDefaultPlatinumCinemaPrice
(double defaultPlatinumCinemaPrice) Sets the default platinum cinema price weightvoid
setDefaultSeatPrice
(double defaultSeatPrice) Sets the default seat price weightvoid
setDefaultSeniorCitizenPrice
(double defaultSeniorCitizenPrice) Sets the default senior citizen ticket price weightvoid
setDefaultStandardCinemaPrice
(double defaultStandardCinemaPrice) Sets the default standard cinema price weightvoid
setDefaultStandardMoviePrice
(double defaultStandardMoviePrice) Sets the default standard movie price weightvoid
setDefaultStudentPrice
(double defaultStudentPrice) Sets the default student ticket price weightvoid
setHolidayPrice
(double holidayPrice) Sets the default holiday ticket price weightvoid
setWeekendPrice
(double weekendPrice) Sets the default weekend ticket price weight
-
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 weightdefautltPlatinumCinemaPrice
- is the default platinum cinema price weightdefaultIMaxCinemaPrice
- is the default IMAX cinema price weightdefaultSeatPrice
- is the default seat price weightdefaultBlockbusterMoviePrice
- is the default blockbuster movie price weightdefault3DMoviePrice
- is the default 3D movie price weightdefaultStandardMoviePrice
- is the default standard movie price weightdefaultChildPrice
- is the default child ticket price weightdefaultStudentPrice
- is the default student ticket price weightdefaultAdultPrice
- is the default adult ticket price weightdefaultSeniorCitizenPrice
- is the default senior citizen ticket price weightholidayPrice
- is the default holiday price weightweekendPrice
- 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
-