Package src.model

Class Seat

Object
Seat
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CoupleSeat, StandardSeat

public abstract class Seat extends Object implements Serializable
The Class that handles the data of Seat
Version:
1.0
Author:
Lee Juin
See Also:
  • Constructor Details

    • Seat

      public Seat(String UUID)
      Constructor for Seat class
      Parameters:
      UUID - is the unique ID in the database
  • Method Details

    • getUUID

      public String getUUID()
      Gets the unique ID of the seat
      Returns:
      The unique ID of the seat
    • setUUID

      public void setUUID(String UUID)
      Sets the unique ID of the seat
      Parameters:
      UUID - is the unique ID of the seat
    • getSeatType

      public abstract SeatType getSeatType()
      Gets the SeatType of the seat
      Returns:
      The SeatType of the seat
    • setSeatType

      public abstract void setSeatType(SeatType seatType)
      Sets the SeatType of the seat
      Parameters:
      seatType - is the SeatType 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