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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the seat assignment statusabstract double
Gets the price weight of the seatabstract SeatType
Gets theSeatType
of the seatgetUUID()
Gets the unique ID of the seatvoid
setAssignStatus
(boolean assign) Sets the seat assignment statusabstract void
setSeatPrice
(double seatPrice) Sets the price weight of the seatabstract void
setSeatType
(SeatType seatType) Sets theSeatType
of the seatvoid
Sets 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 theSeatType
of the seat- Returns:
- The
SeatType
of the seat
-
setSeatType
Sets theSeatType
of the seat- Parameters:
seatType
- is theSeatType
of the seat
-
getAssignStatus
public boolean getAssignStatus()Gets the seat assignment status- Returns:
true
if seat is assigned,false
otherwise
-
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
-