Class ResultsController
java.lang.Object
controller.ResultsController
The ResultsController class is responsible for displaying the results window
and updating the text areas with meal data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidopenResultsWindow(Map<String, Map<String, Integer>> allMeals, double simulationTime, int starter, int main, int dessert, Map<String, Double> metrics) Opens the results window and updates the text areas with the provided meal data.voidupdateOutputAreas(Map<String, Map<String, Integer>> allMeals, double simulationTime, int starter, int main, int dessert, Map<String, Double> metrics) Updates the text areas with the provided meal data.
-
Constructor Details
-
ResultsController
public ResultsController()
-
-
Method Details
-
openResultsWindow
public void openResultsWindow(Map<String, Map<String, Integer>> allMeals, double simulationTime, int starter, int main, int dessert, Map<String, Double> metrics) Opens the results window and updates the text areas with the provided meal data.- Parameters:
allMeals- a map containing meal types and their respective meal counts
-
updateOutputAreas
-