Class CineplexBoundary
java.lang.Object
Boundary
CineplexBoundary
- All Implemented Interfaces:
Base,BaseBoundary
A CineplexBoundary Object
A CineplexBoundary object contains all the methods and attributes
required for interfacing of cinplexes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod to display cineplex menu and ask for user inputintMethod to ask for user input for accessing menu of cineplexesgetLocation(String cineplexName) Method to ask for location of a particular cineplex from the usergetName()Method to ask for name of the cineplexvoidMethod to print all cineplexesvoidMethod to search for a particular cineplexvoidMethod to set boundaries Method to set boundariesvoidMethod to set cineplexMgr Method to set the ManagersvoidviewDetails(String cineplexID) Method for printing the details of a particular cineplexMethods inherited from class Boundary
getCentralManager, getInputDouble, getInputInt, getInputLine, getMasterList, getScanner, print, println, setCentralManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Base
getCentralManager, setCentralManager
-
Field Details
-
cineplexMgr
CineplexManager cineplexMgrObject of CineplexManager
-
-
Constructor Details
-
CineplexBoundary
public CineplexBoundary()Default Constructor
-
-
Method Details
-
setManagers
public void setManagers()Method to set cineplexMgr Method to set the Managers- Specified by:
setManagersin interfaceBase
-
setBoundaries
public void setBoundaries()Method to set boundaries Method to set boundaries- Specified by:
setBoundariesin interfaceBaseBoundary
-
viewDetails
Method for printing the details of a particular cineplex- Parameters:
cineplexID- The ID of the cineplex to print
-
getName
Method to ask for name of the cineplex- Returns:
- Print message asking for input from user
-
getLocation
Method to ask for location of a particular cineplex from the user- Parameters:
cineplexName- Name of the cineplex- Returns:
- Print message asking for input from user
-
searchCineplex
public void searchCineplex()Method to search for a particular cineplex -
printAllCineplexes
public void printAllCineplexes()Method to print all cineplexes -
getCineplexMenuChoice
public int getCineplexMenuChoice()Method to ask for user input for accessing menu of cineplexes- Returns:
- choice
-
cineplexOperations
public void cineplexOperations()Method to display cineplex menu and ask for user input
-