Package src.model

Class Movie

Object
Movie
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BlockbusterMovie, StandardMovie, ThreeDMovie

public abstract class Movie extends Object implements Serializable
The Class that handles the data of Movie
Version:
1.0
Author:
Jerick, Yeek Sheng
See Also:
  • 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 database
      movieTitle - is the title of the movie
      movieAgeRating - is the age rating of the movie
      showingStatus - is the showing status of the movie
      movieCast - is all the casts of the movie
      movieDirector - is the director of the movie
      movieSynopsis - is the synopsis of the movie
      movieDuration - is the duration of the movie
  • Method Details

    • getUUID

      public String getUUID()
      Gets the unique ID of the Movie
      Returns:
      Unique ID of the Movie
    • setUUID

      public void setUUID(String UUID)
      Sets the unique ID of the Movie
      Parameters:
      UUID - is the unique ID to be set
    • getMovieTitle

      public String getMovieTitle()
      Gets the title of the movie
      Returns:
      title of the movie
    • setMovieTitle

      public void setMovieTitle(String movieTitle)
      Sets the title of the movie
      Parameters:
      movieTitle - is the title of the movie to be set
    • getMovieShowingStatus

      public MovieShowingStatus getMovieShowingStatus()
      Gets the showing status of the movie
      Returns:
      MovieShowingStatus of the movie
    • setMovieShowingStatus

      public void setMovieShowingStatus(MovieShowingStatus movieShowingStatus)
      Sets the showing status of the movie
      Parameters:
      movieShowingStatus - is the MovieShowingStatus of the movie to be set
    • getMovieSynopsis

      public String getMovieSynopsis()
      Gets the synopsis of the movie
      Returns:
      synopsis of the movie
    • setMovieSynopsis

      public void setMovieSynopsis(String movieSynopsis)
      Sets the synopsis of the movie
      Parameters:
      movieSynopsis - is the synopsis of the movie to be set
    • getMovieDirector

      public String getMovieDirector()
      Gets the director of the movie
      Returns:
      director of the movie
    • setMovieDirector

      public void setMovieDirector(String movieDirector)
      Sets the director of the movie
      Parameters:
      movieDirector - is the director of the movie to be set
    • getMovieCast

      public ArrayList<String> getMovieCast()
      Gets all the casts of the movie
      Returns:
      all the casts of the movie
    • setMovieCast

      public void setMovieCast(ArrayList<String> movieCast)
      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

      public ArrayList<MovieReview> getMovieReviews()
      Gets all the reviews of the movie
      Returns:
      all the reviews of the movie
    • setMovieReviews

      public void setMovieReviews(ArrayList<MovieReview> movieReviews)
      Sets all the reviews of the movie
      Parameters:
      movieReviews - is ArrayList of MovieReview to be set
    • addMovieReview

      public void addMovieReview(MovieReview movieReview)
      Adds new review to the movie
      Parameters:
      movieReview - is movie review to be added
    • getMovieAgeRating

      public MovieAgeRating getMovieAgeRating()
      Gets the age rating of the movie
      Returns:
      MovieAgeRating of the movie
    • setMovieAgeRating

      public void setMovieAgeRating(MovieAgeRating movieAgeRating)
      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

      public abstract MovieType getMovieType()
      Gets the price weight of the movie type
      Returns:
      The price weight of the movie type
    • setMovieType

      public abstract void setMovieType(MovieType movieType)
      Sets the movie type of the movie
      Parameters:
      movieType - is the MovieType to be set