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
ConstructorDescriptionMovie
(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 TypeMethodDescriptionvoid
addMovieReview
(MovieReview movieReview) Adds new review to the movieGets the age rating of the movieGets all the casts of the movieGets the director of the moviedouble
Gets the duration of the moviedouble
Gets the overall review rating of the movieabstract double
Gets the price weight of the movie typeGets all the reviews of the movieGets the showing status of the movieGets the synopsis of the movieint
Gets the total number of tickets soldGets the title of the movieabstract MovieType
Gets the price weight of the movie typegetUUID()
Gets the unique ID of the Movievoid
setMovieAgeRating
(MovieAgeRating movieAgeRating) Set the age rating of the movievoid
setMovieCast
(ArrayList<String> movieCast) Sets all the casts of the movievoid
setMovieDirector
(String movieDirector) Sets the director of the movievoid
setMovieDuration
(double movieDuration) Sets the duration of the movievoid
setMovieOverallReviewRating
(double movieOverallReviewRating) Sets the overall review rating of the movieabstract void
setMoviePrice
(double price) Sets the price weight of the movie typevoid
setMovieReviews
(ArrayList<MovieReview> movieReviews) Sets all the reviews of the movievoid
setMovieShowingStatus
(MovieShowingStatus movieShowingStatus) Sets the showing status of the movievoid
setMovieSynopsis
(String movieSynopsis) Sets the synopsis of the movievoid
setMovieTicketsSold
(int movieTicketsSold) Sets the total number of tickets soldvoid
setMovieTitle
(String movieTitle) Sets the title of the movieabstract void
setMovieType
(MovieType movieType) Sets the movie type of the movievoid
Sets 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:
MovieShowingStatus
of the movie
-
setMovieShowingStatus
Sets the showing status of the movie- Parameters:
movieShowingStatus
- is theMovieShowingStatus
of 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 ofMovieReview
to 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:
MovieAgeRating
of 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 theMovieType
to be set
-