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
ConstructorsConstructorDescriptionBlockbusterMovie(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 TypeMethodDescriptiondoubleGets the price weight of the movie typeGets the type of the movievoidsetMoviePrice(double price) Sets the price weight of the movie typevoidsetMovieType(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:
getMovieTypein classMovie- Returns:
MovieType
-
getMoviePrice
public double getMoviePrice()Gets the price weight of the movie type- Specified by:
getMoviePricein 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:
setMoviePricein classMovie- Parameters:
price- is the price weight of the movie type
-
setMovieType
Sets the movie type of the movie- Specified by:
setMovieTypein classMovie- Parameters:
type- is theMovieTypeto be set
-