Class ShowEY
java.lang.Object
ShowEY
A ShowEY Object
A ShowEY object used
to store all parameters about shows
-
Constructor Summary
ConstructorsConstructorDescriptionShowEY(String showID, String movieID, String cineplexId, String screenID, String showDate, String showTime, int emptySeats, int numberOfRows, int seatsPerRow, ArrayList<ShowSeatEY> showSeats, MovieManager movieMgr, ScreenManager screenMgr) Constructor for ShowEY object (requires 12 parameter)ShowEY(String showID, String movieID, String cineplexId, String screenID, String showDate, String showTime, int emptySeats, int numberOfRows, int seatsPerRow, MovieManager movieMgr, ScreenManager screenMgr) Constructor for ShowEY object (requires 11 parameter) -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeShowTime(String showTime) Method to change the show timeMethod to get the cineplexIDintMethod to get number of empty seatsgetMovie()Method to get the MovieEY objectMethod to get the movieIDintMethod to get number of rowsMethod to get the screen objectMethod to get the screenIDMethod to get the seat layoutintMethod to get the number of seats per rowMethod to get the show dateMethod to get the showIDMethod to get show seatsMethod to get the show timevoidsetMovieID(String movieID) Method to set the movieIDvoidsetShowSeats(ArrayList<ShowSeatEY> showSeats) Method to set show seatsMethod to print the seat layout in the cineplex
-
Constructor Details
-
ShowEY
public ShowEY(String showID, String movieID, String cineplexId, String screenID, String showDate, String showTime, int emptySeats, int numberOfRows, int seatsPerRow, MovieManager movieMgr, ScreenManager screenMgr) Constructor for ShowEY object (requires 11 parameter)- Parameters:
showID- The showIDmovieID- The movieIDcineplexId- The cineplexIDscreenID- The screenIDshowDate- The show dateshowTime- The show timeemptySeats- The number of empty seatsnumberOfRows- The number of rowsseatsPerRow- The number of seats per rowmovieMgr- A movie manager objectscreenMgr- A screen manager object
-
ShowEY
public ShowEY(String showID, String movieID, String cineplexId, String screenID, String showDate, String showTime, int emptySeats, int numberOfRows, int seatsPerRow, ArrayList<ShowSeatEY> showSeats, MovieManager movieMgr, ScreenManager screenMgr) Constructor for ShowEY object (requires 12 parameter)- Parameters:
showID- The showIDmovieID- The movieIDcineplexId- The cineplexIDscreenID- The screenIDshowDate- The show dateshowTime- The show timeemptySeats- The number of empty seatsnumberOfRows- The number of rowsseatsPerRow- The number of seats per rowshowSeats- A ShowSeatEY objectmovieMgr- A movie manager objectscreenMgr- A screen manager object
-
-
Method Details
-
getShowID
Method to get the showID- Returns:
- The showID
-
getMovieID
Method to get the movieID- Returns:
- The movieID
-
getShowDate
Method to get the show date- Returns:
- The show date
-
getShowTime
Method to get the show time- Returns:
- The show time
-
getScreenID
Method to get the screenID- Returns:
- The screen ID
-
getScreen
Method to get the screen object- Returns:
- The screenEY object
-
getMovie
Method to get the MovieEY object- Returns:
- The MovieEY object
-
getNumberOfRows
public int getNumberOfRows()Method to get number of rows- Returns:
- The number of rows
-
getSeatsPerRow
public int getSeatsPerRow()Method to get the number of seats per row- Returns:
- The number of seats per row
-
getCineplexID
Method to get the cineplexID- Returns:
- The cineplexID
-
setMovieID
Method to set the movieID- Parameters:
movieID- The movieID
-
getEmptySeats
public int getEmptySeats()Method to get number of empty seats- Returns:
- The number of empty seats
-
getSeatLayout
Method to get the seat layout- Returns:
- The show seats
-
changeShowTime
Method to change the show time- Parameters:
showTime- The show time to change into
-
getShowSeats
Method to get show seats- Returns:
- The show seats
-
setShowSeats
Method to set show seats- Parameters:
showSeats- The list of Show Seats
-
ShowSeatLayout
Method to print the seat layout in the cineplex- Returns:
- The seat layout
-