Class CineplexEY
java.lang.Object
CineplexEY
A Cineplex Object
A Cineplex object used to store all the information
about a cineplex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddScreenID(ScreenEY screen) Method to update the screenIDs array with the screenID of the passed object screenGet method for returning the Cineplex IDGet method for returning the location of the cineplexgetName()Get method for returning the name of the cineplexGet method for returning the screen IDMethod for returning the arraylist of all the screens in the current cineplexvoidsetCineplexID(String cineplexID) Set method for setting the Cineplex IDvoidsetLocation(String location) Set method for setting the location of the cineplexvoidsetMasterScreens(ArrayList<ScreenEY> masterScreens) Set method for storing a reference to the master arraylist of ScreensvoidSet method for setting the name of the cineplexvoidsetScreenID(ArrayList<String> screenID) Set method for setting the screenIDMethod for returning the details of the cineplex for printing on the screen
-
Constructor Details
-
CineplexEY
Cineplex Constructor- Parameters:
cineplexID- The unique ID of a cineplexname- The cineplex namelocation- The location of the cineplexscreenID- The screenID
-
-
Method Details
-
setMasterScreens
Set method for storing a reference to the master arraylist of Screens- Parameters:
masterScreens- The master arraylist of all the screens
-
addScreenID
Method to update the screenIDs array with the screenID of the passed object screen- Parameters:
screen- An object of class Screen
-
getCineplexID
Get method for returning the Cineplex ID- Returns:
- The Cineplex ID
-
setCineplexID
Set method for setting the Cineplex ID- Parameters:
cineplexID- The Cineplex ID
-
getName
Get method for returning the name of the cineplex- Returns:
- The name of the Cineplex
-
setName
Set method for setting the name of the cineplex- Parameters:
name- The name of the Cineplex
-
getLocation
Get method for returning the location of the cineplex- Returns:
- the location of the cineplex
-
setLocation
Set method for setting the location of the cineplex- Parameters:
location- The location of the cineplex
-
getScreenID
Get method for returning the screen ID- Returns:
- The screenID
-
setScreenID
Set method for setting the screenID- Parameters:
screenID- An arraylist of Screen IDs
-
getScreenNames
Method for returning the arraylist of all the screens in the current cineplex- Returns:
- The arraylist of all the screens in the current cineplex
-
viewDetails
Method for returning the details of the cineplex for printing on the screen- Returns:
- All the attributes of the cineplex class in a string format
-