Class ResultsController

java.lang.Object
controller.ResultsController

public class ResultsController extends Object
The ResultsController class is responsible for displaying the results window and updating the text areas with 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

      public void updateOutputAreas(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.
      Parameters:
      allMeals - a map containing meal types and their respective meal counts