public class Movie
extends java.lang.Object
Domain:
title : String
movieState : MovieState
Invariante:
title ≠ null AND movieState ≠ null
| Constructor and Description |
|---|
Movie(java.lang.String title)
The constructor for Movie class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeMovieStateTo(MovieState newMovieState)
The setter for the movieState.
|
float |
getAmountDue(int numberOfDaysRented)
Get the amount due for this movie.
|
int |
getFrequentRenterPoints(int numberOfDaysRented)
Returns the number of frequent renter points for this movie.
|
java.lang.String |
getTitle()
The getter for the title.
|
public Movie(java.lang.String title)
title - the title of the new moviepublic java.lang.String getTitle()
public float getAmountDue(int numberOfDaysRented)
numberOfDaysRented - the number of days this movie was rented.public int getFrequentRenterPoints(int numberOfDaysRented)
numberOfDaysRented - the number of days this movie was rentedpublic void changeMovieStateTo(MovieState newMovieState)
newMovieState - the new movie state