Skip to content

To do: Object Classes

Sen edited this page Jun 17, 2017 · 1 revision

There are several objects that need to be designed to facilitate the computation.

  • Database Object : Facilitate the query, and self maintenance, etc.
  • Ingredient Object : Facilitate operations on the ingredient it self. Also possible to form new ingredients.
  • Selector Object : Facilitate the database object to query. Like a container class for arguments.
  • Recipe Object : Facilitate operations and manipulations on recipes, or meals.
  • Maybe Nutrient Object : Not sure what it should do. But as the nutrients form a complex structure, it could be helpful.

Note: On the user side, there should also be a user object