Class TicketEY
java.lang.Object
TicketEY
A TicketEY Object
A TicketEY object used
to store all parameters about tickets
-
Constructor Summary
ConstructorsConstructorDescriptionTicketEY(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) The constructor for ticket object -
Method Summary
Modifier and TypeMethodDescriptiondoubleMethod to compute pricegetDate()Method to get dateMethod to get the movieIDdoublegetPrice()Method to get priceMethod to get screenIDMethod to get seatIDgetTime()Method to get timeMethod to get the userIDvoidsetPrice(double price) Method to set price
-
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 movieIDuserID- The userIDscreenID- The screenIDdate- The date of the showtime- The time of the showseatId- The seatID for the showprice- The price of the ticketbookingID- The bookingIDholidayManager- The holiday manager(controller) objectmovieMgr- The movie manager(controller) objectscreenMgr- The screen manager(controller) objectmoviegoerMgr- The MovieGoer manager (controller) objectticketPriceManager- The Ticket price manager(controller) object- Throws:
ParseException- If there's error creating the object
-
-
Method Details
-
getMovieID
Method to get the movieID- Returns:
- the movieID
-
getUserID
Method to get the userID- Returns:
- The userID
-
getScreenID
Method to get screenID- Returns:
- the screenID
-
getDate
Method to get date- Returns:
- the date
-
getTime
Method to get time- Returns:
- the time
-
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
Method to compute price- Returns:
- the price for the specific ticket
- Throws:
ParseException- If there's error creating the object
-