Package src.model
Class Movie
Object
Movie
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BlockbusterMovie,StandardMovie,ThreeDMovie
The Class that handles the data of Movie
- Version:
- 1.0
- Author:
- Jerick, Yeek Sheng
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMovie(String UUID, String movieTitle, MovieAgeRating movieAgeRating, MovieShowingStatus showingStatus, ArrayList<String> movieCast, String movieDirector, String movieSynopsis, double movieDuration) Constructor for Movie class -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMovieReview(MovieReview movieReview) Adds new review to the movieGets the age rating of the movieGets all the casts of the movieGets the director of the moviedoubleGets the duration of the moviedoubleGets the overall review rating of the movieabstract doubleGets the price weight of the movie typeGets all the reviews of the movieGets the showing status of the movieGets the synopsis of the movieintGets the total number of tickets soldGets the title of the movieabstract MovieTypeGets the price weight of the movie typegetUUID()Gets the unique ID of the MovievoidsetMovieAgeRating(MovieAgeRating movieAgeRating) Set the age rating of the movievoidsetMovieCast(ArrayList<String> movieCast) Sets all the casts of the movievoidsetMovieDirector(String movieDirector) Sets the director of the movievoidsetMovieDuration(double movieDuration) Sets the duration of the movievoidsetMovieOverallReviewRating(double movieOverallReviewRating) Sets the overall review rating of the movieabstract voidsetMoviePrice(double price) Sets the price weight of the movie typevoidsetMovieReviews(ArrayList<MovieReview> movieReviews) Sets all the reviews of the movievoidsetMovieShowingStatus(MovieShowingStatus movieShowingStatus) Sets the showing status of the movievoidsetMovieSynopsis(String movieSynopsis) Sets the synopsis of the movievoidsetMovieTicketsSold(int movieTicketsSold) Sets the total number of tickets soldvoidsetMovieTitle(String movieTitle) Sets the title of the movieabstract voidsetMovieType(MovieType movieType) Sets the movie type of the movievoidSets the unique ID of the Movie
-
Constructor Details
-
Movie
public Movie(String UUID, String movieTitle, MovieAgeRating movieAgeRating, MovieShowingStatus showingStatus, ArrayList<String> movieCast, String movieDirector, String movieSynopsis, double movieDuration) Constructor for Movie class- Parameters:
UUID- is the unique ID in the databasemovieTitle- is the title of the moviemovieAgeRating- is the age rating of 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
-
getUUID
Gets the unique ID of the Movie- Returns:
- Unique ID of the Movie
-
setUUID
Sets the unique ID of the Movie- Parameters:
UUID- is the unique ID to be set
-
getMovieTitle
Gets the title of the movie- Returns:
- title of the movie
-
setMovieTitle
Sets the title of the movie- Parameters:
movieTitle- is the title of the movie to be set
-
getMovieShowingStatus
Gets the showing status of the movie- Returns:
MovieShowingStatusof the movie
-
setMovieShowingStatus
Sets the showing status of the movie- Parameters:
movieShowingStatus- is theMovieShowingStatusof the movie to be set
-
getMovieSynopsis
Gets the synopsis of the movie- Returns:
- synopsis of the movie
-
setMovieSynopsis
Sets the synopsis of the movie- Parameters:
movieSynopsis- is the synopsis of the movie to be set
-
getMovieDirector
Gets the director of the movie- Returns:
- director of the movie
-
setMovieDirector
Sets the director of the movie- Parameters:
movieDirector- is the director of the movie to be set
-
getMovieCast
Gets all the casts of the movie- Returns:
- all the casts of the movie
-
setMovieCast
Sets all the casts of the movie- Parameters:
movieCast- is ArrayList of casts to be set
-
getMovieOverallReviewRating
public double getMovieOverallReviewRating()Gets the overall review rating of the movie- Returns:
- overall review rating of the movie
-
setMovieOverallReviewRating
public void setMovieOverallReviewRating(double movieOverallReviewRating) Sets the overall review rating of the movie- Parameters:
movieOverallReviewRating- is the overall review rating of the movie to be set
-
getMovieReviews
Gets all the reviews of the movie- Returns:
- all the reviews of the movie
-
setMovieReviews
Sets all the reviews of the movie- Parameters:
movieReviews- is ArrayList ofMovieReviewto be set
-
addMovieReview
Adds new review to the movie- Parameters:
movieReview- is movie review to be added
-
getMovieAgeRating
Gets the age rating of the movie- Returns:
MovieAgeRatingof the movie
-
setMovieAgeRating
Set the age rating of the movie- Parameters:
movieAgeRating- is age rating of the movie to be set
-
getMovieDuration
public double getMovieDuration()Gets the duration of the movie- Returns:
- duration of the movie
-
setMovieDuration
public void setMovieDuration(double movieDuration) Sets the duration of the movie- Parameters:
movieDuration- is the duration of the movie to be set
-
getMovieTicketsSold
public int getMovieTicketsSold()Gets the total number of tickets sold- Returns:
- total number of tickets sold
-
setMovieTicketsSold
public void setMovieTicketsSold(int movieTicketsSold) Sets the total number of tickets sold- Parameters:
movieTicketsSold- is the total number of tickets sold to be set
-
getMoviePrice
public abstract double getMoviePrice()Gets the price weight of the movie type- Returns:
- The price weight of the movie type
-
setMoviePrice
public abstract void setMoviePrice(double price) Sets the price weight of the movie type- Parameters:
price- is the price weight of the movie type to be set
-
getMovieType
Gets the price weight of the movie type- Returns:
- The price weight of the movie type
-
setMovieType
Sets the movie type of the movie- Parameters:
movieType- is theMovieTypeto be set
-