Package no.ntnu.idatt1002.demo.data.recipes


package no.ntnu.idatt1002.demo.data.recipes
  • Class
    Description
    The FileHandler class is a static class that handles reading and writing to the .register files for storing dinner recipes and ingredients at hand.
    The FoodItem enum class defines a set of food types that may be serving as ingredients in recipes and that the user may, or may not, have available in the cupboard, fridge or freezer.
    The Ingredient class represents an ingredient that can be part of a recipe in real life and/or be available to the user in real life.
    The class holds a collection of FoodItem constants in an ArrayList that represents the groceries that the user has available in real life.
    The enum class defines a set of valid units of measurements related to the ingredients and recipes.
    The recipe class represents a dinner recipe for the user.
    The RecipeIngredient class is an extension of the Ingredient class used as part of recipes that also stored the boolean value 'atHand'.
    The RecipeRegister class holds a collection of Recipes in a list and provides methods to access the recipes, add recipes to the register as well as to pick a number of recipe's best fitting a list of food types provided as a IngredientsAtHand object.