Class TicketPrice
java.lang.Object
TicketPrice
A Ticket Price Object
A TicketPrice object used
to store all parameters about ticket price
-
Constructor Summary
ConstructorsConstructorDescriptionTicketPrice(DayTypeEN dayType, ScreenClassEN screenClass, MovieGoerAgeEN moviegoerAge, MovieTypeEN movieType, double price) The constructor of TicketPrice object -
Method Summary
-
Constructor Details
-
TicketPrice
public TicketPrice(DayTypeEN dayType, ScreenClassEN screenClass, MovieGoerAgeEN moviegoerAge, MovieTypeEN movieType, double price) The constructor of TicketPrice object- Parameters:
dayType- The day typescreenClass- The screen class typemoviegoerAge- The movie goer age groupmovieType- The movie typeprice- The price of the ticket
-
-
Method Details
-
getDayType
Method to get the day type- Returns:
- DayTypeEN the day type
-
getScreenClass
Method to get the screen class type- Returns:
- ScreenClassEN the type of screen class (PLATINUM_MOVIE_SUITES or REGULAR_SCREEN)
-
getMovieGoerAge
Method to get the movie goer age group- Returns:
- MovieGoerAgeEN the type of movie goer age group (ADULT,SENIOR,CHILD or STUDENT)
-
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
-