Uses of Class
edu.ntnu.stud.idatt1005.team3.model.FoodItem
Packages that use FoodItem
Package
Description
-
Uses of FoodItem in edu.ntnu.stud.idatt1005.team3.controller
Methods in edu.ntnu.stud.idatt1005.team3.controller that return types with arguments of type FoodItemModifier and TypeMethodDescriptionShoppingListController.checkInventory
(TheCookbookDB db, List<FoodItem> shoppingList) Checks the shopping list against the inventory in the database.ShoppingListController.generateShoppingList()
Generates the final shopping list.Method parameters in edu.ntnu.stud.idatt1005.team3.controller with type arguments of type FoodItemModifier and TypeMethodDescriptionShoppingListController.checkInventory
(TheCookbookDB db, List<FoodItem> shoppingList) Checks the shopping list against the inventory in the database. -
Uses of FoodItem in edu.ntnu.stud.idatt1005.team3.database
Methods in edu.ntnu.stud.idatt1005.team3.database that return FoodItemModifier and TypeMethodDescriptionTheCookbookDB.getFoodItem
(String name) Retrieves a food item from the database.TheCookbookDB.getIngredientAsFoodItem
(int recipeId, String foodItemName) Retrieves the ID of a category from the database.Methods in edu.ntnu.stud.idatt1005.team3.database that return types with arguments of type FoodItemModifier and TypeMethodDescriptionTheCookbookDB.getIngredientsAsFoodItemList
(int recipeId) Retrieves the ingredients for a recipe as a list of FoodItem objects.TheCookbookDB.getIngredientsForRecipe
(int recipe_id) Retrieves all the ingredients from the database og a chosen recipe and puts them in a list.TheCookbookDB.getNonEmptyFoodItems()
Retrieves all food items from the database that have a quantity greater than 0.Methods in edu.ntnu.stud.idatt1005.team3.database with parameters of type FoodItemModifier and TypeMethodDescriptiondouble
TheCookbookDB.getFoodItemQuantity
(FoodItem foodItem) Retrieves all the categories from the database og a chosen recipe and puts them in a list.void
TheCookbookDB.updateFoodItem
(FoodItem foodItem, double quantity) Updates the quantity of a food item in the database. -
Uses of FoodItem in edu.ntnu.stud.idatt1005.team3.model
Methods in edu.ntnu.stud.idatt1005.team3.model that return FoodItemModifier and TypeMethodDescriptionShoppingList.findFoodItemById
(int id) Finds a food item in the shopping list by its ID.ShoppingList.findFoodItemByName
(String name) Finds a food item in the shopping list by its name.Inventory.getFoodItemById
(int id) Get FoodItem by ID.Methods in edu.ntnu.stud.idatt1005.team3.model that return types with arguments of type FoodItemModifier and TypeMethodDescriptionShoppingList.getFoodItems()
Returns the list of food items.Recipe.getIngredients()
A method to get the ingredients in the recipe.Methods in edu.ntnu.stud.idatt1005.team3.model with parameters of type FoodItemModifier and TypeMethodDescriptionvoid
Inventory.addFoodItem
(FoodItem foodItem) Adds a food item to the inventory.void
ShoppingList.addFoodItem
(FoodItem foodItem) Adds a food item to the shopping list.void
ShoppingList.removeFoodItem
(FoodItem foodItem) Removes a food item from the shopping list.Method parameters in edu.ntnu.stud.idatt1005.team3.model with type arguments of type FoodItemModifier and TypeMethodDescriptionvoid
Recipe.setIngredients
(ArrayList<FoodItem> ingredients) A method to set the ingredients in the recipe.Constructor parameters in edu.ntnu.stud.idatt1005.team3.model with type arguments of type FoodItemModifierConstructorDescriptionShoppingList
(ArrayList<FoodItem> foodItems) Constructs a new shopping list. -
Uses of FoodItem in edu.ntnu.stud.idatt1005.team3.view.pages.subpages
Methods in edu.ntnu.stud.idatt1005.team3.view.pages.subpages that return types with arguments of type FoodItemMethods in edu.ntnu.stud.idatt1005.team3.view.pages.subpages with parameters of type FoodItem