... | ... | @@ -56,4 +56,4 @@ These components are bundled into a `GroceryService`. Additionally, grocery serv |
|
|
|
|
|
The items of a grocery list are maintained by a `GroceryList` object. For each item the object keeps an `ItemDescription` containing the requested quantity and the number of purchased pieces. Using the `add` and `delete` methods we can add new items, respectively, delete items from the list. The `bought` method informs the list that a certain quantity of an item was bought. The list then updates the item's description and refreshes the user interface.
|
|
|
|
|
|
Finally, every grocery service relies on a strongly consistent \texttt{Inventory}. This inventory is an external entity that maintains an overview of all purchases. Hence, for each item of the grocery list, the inventory stores the number of purchased pieces. |
|
|
\ No newline at end of file |
|
|
Finally, every grocery service relies on a strongly consistent `Inventory`. This inventory is an external entity that maintains an overview of all purchases. Hence, for each item of the grocery list, the inventory stores the number of purchased pieces. |
|
|
\ No newline at end of file |