Class ScreenBoundary
java.lang.Object
Boundary
ScreenBoundary
- All Implemented Interfaces:
Base,BaseBoundary
A ScreenBoundary object that extends Boundary and implements BaseBoundary interface
A ScreenBoundary object used to process all
Screen object related input and output
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe master list of screenEY objects(package private) ScreenManagercontains the screenManager to process all screen related objects -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod to get cineplex name from userintMethod to get number of rows from userMethod to get screen name from userMethod to get screen class from userintMethod to get choice from screen menuintMethod to get number of seat per row from uservoidMethod to print all screensvoidMethod to perform screen operations base on screen menu choicevoidMethod to set boundariesvoidMethod to set the ManagersvoidMethod to set master screenMethods 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
-
screenManager
ScreenManager screenManagercontains the screenManager to process all screen related objects -
masterScreens
The master list of screenEY objects
-
-
Constructor Details
-
ScreenBoundary
public ScreenBoundary()Constructor for ScreenBoundary
-
-
Method Details
-
setMasterArrays
public void setMasterArrays()Method to set master screen -
getCineplex
Method to get cineplex name from user- Returns:
- The cineplex name
-
getScreen
Method to get screen name from user- Returns:
- The screen name
-
getScreenClass
Method to get screen class from user- Returns:
- The screen type
-
getNumberOfRows
public int getNumberOfRows()Method to get number of rows from user- Returns:
- The number of rows
-
getSeatPerRow
public int getSeatPerRow()Method to get number of seat per row from user- Returns:
- The number of seats per row
-
printAllScreens
public void printAllScreens()Method to print all screens -
getScreenMenuChoice
public int getScreenMenuChoice()Method to get choice from screen menu- Returns:
- The choice
-
screenOperations
public void screenOperations()Method to perform screen operations base on screen menu choice -
setManagers
public void setManagers()Method to set the Managers- Specified by:
setManagersin interfaceBase
-
setBoundaries
public void setBoundaries()Method to set boundaries- Specified by:
setBoundariesin interfaceBaseBoundary
-