How jhinico/grocery-project works
Grocery-Project is a small, console-based Java grocery-store OOP exercise. A user enters through the Java application, selects a role, and then manages inventory or uses a shopping cart to review and check out products; store state also gates customer access and product removal. The active Java files are mapped, while Old-files contains a separate earlier version. The README gives no further capability detail, and the dispatcher and restocker implementation were not excerpted, so those connections are left unverified rather than inferred.
Main entry points: Logic_Gate.java Role dispatcher · Inventory.java Inventory management · Manager_Admin.java Manager workflow · StoreState.java Store state
Components 11
Application entry
- Application entry
Java/Grocery.java - Role dispatcher
Java/Logic_Gate.java
Store roles
- Manager workflow
Java/Manager_Admin.java - Customer workflow
Java/Customer.java - Restocker workflow
Java/Re_stocker.java - Store state
Java/StoreState.java
Shopping and stock
- Inventory management
Java/Inventory.java - Shopping cart
Java/ShoppingCart.java - Cart item
Java/CartItem.java
Store domain
- Product model
Java/Product.java
Other components
- Console user
Connections 13
- Console user → Application entry: starts
Java/Grocery.java - Application entry → Role dispatcher: runs
Java/Grocery.java - Role dispatcher → Manager workflow: dispatches
- Role dispatcher → Customer workflow: dispatches
- Role dispatcher → Restocker workflow: dispatches
- Manager workflow → Inventory management: manages
Java/Manager_Admin.java - Manager workflow → Store state: controls
Java/Manager_Admin.java - Customer workflow → Shopping cart: operates
Java/Customer.java - Store state → Customer workflow: allows
Java/StoreState.java - Store state → Inventory management: gates removal
Java/StoreState.java - Shopping cart → Inventory management: reads products
Java/ShoppingCart.java - Shopping cart → Cart item: creates
Java/ShoppingCart.java - Inventory management → Product model: creates
Java/Inventory.java