Package src.model
Class Seat
Object
Seat
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CoupleSeat,StandardSeat
The Class that handles the data of Seat
- Version:
- 1.0
- Author:
- Lee Juin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the seat assignment statusabstract doubleGets the price weight of the seatabstract SeatTypeGets theSeatTypeof the seatgetUUID()Gets the unique ID of the seatvoidsetAssignStatus(boolean assign) Sets the seat assignment statusabstract voidsetSeatPrice(double seatPrice) Sets the price weight of the seatabstract voidsetSeatType(SeatType seatType) Sets theSeatTypeof the seatvoidSets the unique ID of the seat
-
Constructor Details
-
Seat
Constructor for Seat class- Parameters:
UUID- is the unique ID in the database
-
-
Method Details
-
getUUID
Gets the unique ID of the seat- Returns:
- The unique ID of the seat
-
setUUID
Sets the unique ID of the seat- Parameters:
UUID- is the unique ID of the seat
-
getSeatType
Gets theSeatTypeof the seat- Returns:
- The
SeatTypeof the seat
-
setSeatType
Sets theSeatTypeof the seat- Parameters:
seatType- is theSeatTypeof the seat
-
getAssignStatus
public boolean getAssignStatus()Gets the seat assignment status- Returns:
trueif seat is assigned,falseotherwise
-
setAssignStatus
public void setAssignStatus(boolean assign) Sets the seat assignment status- Parameters:
assign- is the assignment status
-
getSeatPrice
public abstract double getSeatPrice()Gets the price weight of the seat- Returns:
- The price weight of the seat
-
setSeatPrice
public abstract void setSeatPrice(double seatPrice) Sets the price weight of the seat- Parameters:
seatPrice- is the price weight of the seat
-