Class CineplexEY

java.lang.Object
CineplexEY

public class CineplexEY extends Object
A Cineplex Object

A Cineplex object used to store all the information about a cineplex

  • Constructor Details

    • CineplexEY

      public CineplexEY(String cineplexID, String name, String location, ArrayList<String> screenID)
      Cineplex Constructor
      Parameters:
      cineplexID - The unique ID of a cineplex
      name - The cineplex name
      location - The location of the cineplex
      screenID - The screenID
  • Method Details

    • setMasterScreens

      public void setMasterScreens(ArrayList<ScreenEY> masterScreens)
      Set method for storing a reference to the master arraylist of Screens
      Parameters:
      masterScreens - The master arraylist of all the screens
    • addScreenID

      public void addScreenID(ScreenEY screen)
      Method to update the screenIDs array with the screenID of the passed object screen
      Parameters:
      screen - An object of class Screen
    • getCineplexID

      public String getCineplexID()
      Get method for returning the Cineplex ID
      Returns:
      The Cineplex ID
    • setCineplexID

      public void setCineplexID(String cineplexID)
      Set method for setting the Cineplex ID
      Parameters:
      cineplexID - The Cineplex ID
    • getName

      public String getName()
      Get method for returning the name of the cineplex
      Returns:
      The name of the Cineplex
    • setName

      public void setName(String name)
      Set method for setting the name of the cineplex
      Parameters:
      name - The name of the Cineplex
    • getLocation

      public String getLocation()
      Get method for returning the location of the cineplex
      Returns:
      the location of the cineplex
    • setLocation

      public void setLocation(String location)
      Set method for setting the location of the cineplex
      Parameters:
      location - The location of the cineplex
    • getScreenID

      public ArrayList<String> getScreenID()
      Get method for returning the screen ID
      Returns:
      The screenID
    • setScreenID

      public void setScreenID(ArrayList<String> screenID)
      Set method for setting the screenID
      Parameters:
      screenID - An arraylist of Screen IDs
    • getScreenNames

      public ArrayList<String> 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

      public String 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