Package src.model
Class StandardMovie
- All Implemented Interfaces:
Serializable
The Class inherited from the Superclass
Movie that handles the data
of Standard Movie- Version:
- 1.0
- Author:
- Jerick, Yeek Sheng
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStandardMovie(String UUID, String movieTitle, MovieAgeRating movieAgeRating, MovieShowingStatus showingStatus, ArrayList<String> movieCast, String movieDirector, String movieSynopsis, double movieDuration) Constructor for Standard 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
-
StandardMovie
public StandardMovie(String UUID, String movieTitle, MovieAgeRating movieAgeRating, MovieShowingStatus showingStatus, ArrayList<String> movieCast, String movieDirector, String movieSynopsis, double movieDuration) Constructor for Standard 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
-
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
-
getMoviePrice
public double getMoviePrice()Gets the price weight of the movie type- Specified by:
getMoviePricein classMovie- Returns:
- The price weight of the movie type
-
getMovieType
Gets the type of the movie- Specified by:
getMovieTypein classMovie- Returns:
MovieType
-
setMovieType
Sets the movie type of the movie- Specified by:
setMovieTypein classMovie- Parameters:
type- is theMovieTypeto be set
-