Uses of Class
no.ntnu.idatt1002.demo.data.recipes.Recipe
Packages that use Recipe
-
Uses of Recipe in no.ntnu.idatt1002.demo.controller
Methods in no.ntnu.idatt1002.demo.controller with parameters of type RecipeModifier and TypeMethodDescriptionvoid
The setData method takes a Recipe object as parameter and sets the information of the view accordingly.void
The setData method takes in a Recipe object and sets the labels of the Recipe tiles according to that recipe's name and number of missing ingredients. -
Uses of Recipe in no.ntnu.idatt1002.demo.data.recipes
Methods in no.ntnu.idatt1002.demo.data.recipes that return RecipeModifier and TypeMethodDescriptionThe method takes in a string with the name of a recipe and returns that recipe object if it is in the recipe register.static Recipe
FileHandler.readRecipe
(String fileDestination) The method supports the readRecipeRegister method by receiving a string containing the information needed to create one specific recipe object.Methods in no.ntnu.idatt1002.demo.data.recipes that return types with arguments of type RecipeModifier and TypeMethodDescriptionRecipeRegister.getRecipes()
The method returns the list of recipes in the Register.RecipeRegister.pickBestFits
(int number, IngredientsAtHand atHand) The method takes in a number and an IngredientsAtHand object and returns an ArrayList containing that number of recipes that, based on the ingredients at hand, require the fewest extra ingredients apart from the ones at hand.Methods in no.ntnu.idatt1002.demo.data.recipes with parameters of type RecipeModifier and TypeMethodDescriptionvoid
The method takes in a Recipe object.static StringBuilder
FileHandler.formatRecipe
(Recipe recipe) The method supports the method for writing a recipe register to file by taking in a single recipe object and return it as a String at the correct format for storage.