Class Boundary
java.lang.Object
Boundary
- Direct Known Subclasses:
BookingBoundary,CineplexBoundary,HolidayBoundary,MovieBoundary,MovieGoerBoundary,ReviewBoundary,ScreenBoundary,ShowBoundary,StaffBoundary,TicketPriceBoundary
A Boundary Object
A Boundary object is the object of the parent class of all other boundary classes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod to get CentralManagerEY objectdoublegetInputDouble(String msgToPrint) Method to print a message and ask for user inputgetInputInt(String msgToPrint) Method to print a message and ask for user inputgetInputLine(String msgToPrint) Method to print a message and ask for user inputgetMasterList(String arrayName) Method to return a particular master listMethod to return the scanner objectvoidMethod to print a linevoidMethod to print a line and move on to the next linevoidsetCentralManager(CentralManagerEY CentralManager) Method to set CentralManager
-
Constructor Details
-
Boundary
public Boundary()Creates a new object of class Boundary
-
-
Method Details
-
getInputInt
Method to print a message and ask for user input- Parameters:
msgToPrint- The message that needs to be printed- Returns:
- asks for integer input from the user
-
getInputDouble
Method to print a message and ask for user input- Parameters:
msgToPrint- The message that needs to be printed- Returns:
- asks for input needed from the user in Double
-
getInputLine
Method to print a message and ask for user input- Parameters:
msgToPrint- The message that needs to be printed- Returns:
- asks for input needed from user in String
-
println
Method to print a line and move on to the next line- Parameters:
line- The statement that needs to be printed
-
print
Method to print a line- Parameters:
string- The string that needs to be printed
-
setCentralManager
Method to set CentralManager- Parameters:
CentralManager- New CentralManager object
-
getCentralManager
Method to get CentralManagerEY object- Returns:
- Object of CentralManagerEY
-
getMasterList
Method to return a particular master list- Parameters:
arrayName- Master list required- Returns:
- Master list
-
getScanner
Method to return the scanner object- Returns:
- Scanner object
-