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
ConstructorDescriptionStandardMovie
(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 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
-
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:
setMoviePrice
in 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:
getMoviePrice
in classMovie
- Returns:
- The price weight of the movie type
-
getMovieType
Gets the type of the movie- Specified by:
getMovieType
in classMovie
- Returns:
MovieType
-
setMovieType
Sets the movie type of the movie- Specified by:
setMovieType
in classMovie
- Parameters:
type
- is theMovieType
to be set
-