Class TicketEY


public class TicketEY extends Object
A TicketEY Object

A TicketEY object used to store all parameters about tickets

  • Constructor Details

    • TicketEY

      public TicketEY(String movieID, String userID, String screenID, String date, String time, String seatId, double price, String bookingID, HolidayManager holidayManager, MovieManager movieMgr, ScreenManager screenMgr, MovieGoerManager moviegoerMgr, TicketPriceManager ticketPriceManager) throws ParseException
      The constructor for ticket object
      Parameters:
      movieID - The movieID
      userID - The userID
      screenID - The screenID
      date - The date of the show
      time - The time of the show
      seatId - The seatID for the show
      price - The price of the ticket
      bookingID - The bookingID
      holidayManager - The holiday manager(controller) object
      movieMgr - The movie manager(controller) object
      screenMgr - The screen manager(controller) object
      moviegoerMgr - The MovieGoer manager (controller) object
      ticketPriceManager - The Ticket price manager(controller) object
      Throws:
      ParseException - If there's error creating the object
  • Method Details

    • getMovieID

      public String getMovieID()
      Method to get the movieID
      Returns:
      the movieID
    • getUserID

      public String getUserID()
      Method to get the userID
      Returns:
      The userID
    • getScreenID

      public String getScreenID()
      Method to get screenID
      Returns:
      the screenID
    • getDate

      public String getDate()
      Method to get date
      Returns:
      the date
    • getTime

      public String getTime()
      Method to get time
      Returns:
      the time
    • getSeatId

      public String getSeatId()
      Method to get seatID
      Returns:
      the seatID
    • setPrice

      public void setPrice(double price)
      Method to set price
      Parameters:
      price - The price
    • getPrice

      public double getPrice()
      Method to get price
      Returns:
      the price
    • computePrice

      public double computePrice() throws ParseException
      Method to compute price
      Returns:
      the price for the specific ticket
      Throws:
      ParseException - If there's error creating the object