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
ConstructorsConstructorDescriptionStandardCinema(String UUID, ArrayList<Seat> seats, int numOfRows, int totalNumOfSeats) Constructor for StandardCinema class -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the price weight of the cinemavoidsetCinemaPrice(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 theSeatinstances 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:
setCinemaPricein classCinema- Parameters:
cinemaPrice- is the price weight of the cinema
-
getCinemaPrice
public double getCinemaPrice()Gets the price weight of the cinema- Specified by:
getCinemaPricein classCinema- Returns:
- The price weight of the cinema
-