Package src.model
Class StandardCinema
- All Implemented Interfaces:
Serializable
,Comparable
The Class inherited from the Superclass
Cinema
that handles the data
of Standard Cinema- Version:
- 1.0
- Author:
- Lee Juin
- See Also:
-
Constructor Summary
ConstructorDescriptionStandardCinema
(String UUID, ArrayList<Seat> seats, int numOfRows, int totalNumOfSeats) Constructor for StandardCinema 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
-
StandardCinema
Constructor for StandardCinema 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
-