Class ReviewBoundary
java.lang.Object
Boundary
ReviewBoundary
- All Implemented Interfaces:
Base,BaseBoundary
A Review Boundary Object
A ReviewBoundary object used
process all Review input and output
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) MovieManagerTo contain movieManager object to process review objects(package private) ReviewManagerTo contain reviewManager object to process review objects -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod to add reviewvoidAvgRatingPrint(String movieID) Method to print average ratingdoubleMethod to get movie rating scalevoidMethod to set boundariesvoidMethod to set the ManagersvoidMethod to print top 5 moviesMethods 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
-
reviewManager
ReviewManager reviewManagerTo contain reviewManager object to process review objects -
movieManager
MovieManager movieManagerTo contain movieManager object to process review objects
-
-
Constructor Details
-
ReviewBoundary
public ReviewBoundary()Constructor for ReviewBoundary
-
-
Method Details
-
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
-
getScale
Method to get movie rating scale- Parameters:
movieID- The movieID- Returns:
- The scale
-
addReview
Method to add review- Parameters:
userID- The userIDmovieID- The movieID
-
AvgRatingPrint
Method to print average rating- Parameters:
movieID- The movieID
-
Top5MovPrint
public void Top5MovPrint()Method to print top 5 movies
-