Skip to content

Domain & Features

Marco Trivisonno edited this page Apr 6, 2024 · 16 revisions

Domain

See the domain_diagram.wsd file for the Waste Not domain.

Features

Add item

Item with barcode

User has to scan the product's barcode, and, if the product is recognised user should insert some info:

  • product expiration date
  • storage
  • measure (unit of measure and quantity) (e.g. 500 gr)
  • units (the number of product he buyer, 2 packs of 500gr cookies)

Fresh item

TBD

See add item discussion to know if user wants to add an item that is the same as an existing item.

Delete item

User deletes the item from his inventory. User can undo the deletion, in this case a new item with same information is created.

Open item

A user can open one item at a time. Opening an item means decrease the unit of the item by 1 each time and creating a new item with the date the user opened the item.

Consume an item

User chooses how many units of the item he has consumed and this value is decrease from the total item units. This action is allow only if the units of the item is greater than 1.

Completely consume an item

The item will be removed from the inventory. User can undo the action.

Clone this wiki locally