Package src.model
Class PlatinumCinema
- All Implemented Interfaces:
Serializable
,Comparable
The Class inherited from the Superclass
Cinema
that handles the data
of Platinum Cinema- Version:
- 1.0
- Author:
- Lee Juin
- See Also:
-
Constructor Summary
ConstructorDescriptionPlatinumCinema
(String UUID, ArrayList<Seat> seats, int numOfRows, int totalNumOfSeats) Constructor for PlatinumCinema class -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the price weight of the cinemavoid
setCinemaPrice
(double cinemaPrice) Sets the price weight of the cinemaMethods inherited from class Cinema
addSeat, compareTo, duplicateSeats, getCinemaClass, getNumOfRows, getSeats, getTotalNumOfSeats, getUUID, setCinemaClass, setNumOfRows, setSeats, setTotalNumOfSeats, setUUID
-
Constructor Details
-
PlatinumCinema
Constructor for PlatinumCinema class- Parameters:
UUID
- is the unique ID in the databaseseats
- is all theSeat
instances in the cinemanumOfRows
- is the total number of rows in the cinematotalNumOfSeats
- is the total number of seats in the cinema
-
-
Method Details
-
setCinemaPrice
public void setCinemaPrice(double cinemaPrice) Sets the price weight of the cinema- Specified by:
setCinemaPrice
in classCinema
- Parameters:
cinemaPrice
- is the price weight of the cinema
-
getCinemaPrice
public double getCinemaPrice()Gets the price weight of the cinema- Specified by:
getCinemaPrice
in classCinema
- Returns:
- The price weight of the cinema
-