Package src.model
Class BlockbusterMovie
- All Implemented Interfaces:
Serializable
The Class inherited from the Superclass
Movie
that handles the data
of Blockbuster Movie- Version:
- 1.0
- Author:
- Jerick, Yeek Sheng
- See Also:
-
Constructor Summary
ConstructorDescriptionBlockbusterMovie
(String UUID, String movieTitle, MovieAgeRating movieAgeRating, MovieShowingStatus showingStatus, ArrayList<String> movieCast, String movieDirector, String movieSynopsis, double movieDuration) Constructor for Blockbuster movie -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the price weight of the movie typeGets the type of the movievoid
setMoviePrice
(double price) Sets the price weight of the movie typevoid
setMovieType
(MovieType type) Sets the movie type of the movieMethods inherited from class Movie
addMovieReview, getMovieAgeRating, getMovieCast, getMovieDirector, getMovieDuration, getMovieOverallReviewRating, getMovieReviews, getMovieShowingStatus, getMovieSynopsis, getMovieTicketsSold, getMovieTitle, getUUID, setMovieAgeRating, setMovieCast, setMovieDirector, setMovieDuration, setMovieOverallReviewRating, setMovieReviews, setMovieShowingStatus, setMovieSynopsis, setMovieTicketsSold, setMovieTitle, setUUID
-
Constructor Details
-
BlockbusterMovie
public BlockbusterMovie(String UUID, String movieTitle, MovieAgeRating movieAgeRating, MovieShowingStatus showingStatus, ArrayList<String> movieCast, String movieDirector, String movieSynopsis, double movieDuration) Constructor for Blockbuster movie- Parameters:
UUID
- is the unique ID in the databasemovieTitle
- is the movie titlemovieAgeRating
- is the age rating for the movieshowingStatus
- is the showing status of the moviemovieCast
- is all the casts of the moviemovieDirector
- is the director of the moviemovieSynopsis
- is the synopsis of the moviemovieDuration
- is the duration of the movie
-
-
Method Details
-
getMovieType
Gets the type of the movie- Specified by:
getMovieType
in classMovie
- Returns:
MovieType
-
getMoviePrice
public double getMoviePrice()Gets the price weight of the movie type- Specified by:
getMoviePrice
in classMovie
- Returns:
- The price weight of the movie type
-
setMoviePrice
public void setMoviePrice(double price) Sets the price weight of the movie type- Specified by:
setMoviePrice
in classMovie
- Parameters:
price
- is the price weight of the movie type
-
setMovieType
Sets the movie type of the movie- Specified by:
setMovieType
in classMovie
- Parameters:
type
- is theMovieType
to be set
-