How cris-li-dev/pizzeria_poo_umc works
Pizzería G3 is a Java object-oriented model and console demonstration of ordering, preparing, and billing products. The shown Main workflow creates a customer, courier, address, and mixed-product order; calculates totals and prints a receipt, then exercises preparation and delivery actions. Pizza and garlic bread share preparation and customization capabilities, while drinks are order items. Source excerpts support the order, pricing, and product relationships; some capabilities are documented in the README but their implementation details were not sampled.
Main entry points: Main.java Demo workflow · Pedido.java Order · PaloDeAjo.java Garlic bread · Pizza.java Pizza
Components 16
Order and people
- Customer
Cliente.java - Person base
Persona.java - Courier
Repartidor.java - Delivery address
Direccion.java - Order
Pedido.java
Products and preparation
- Pizza
Pizza.java - Garlic bread
PaloDeAjo.java - Drink
Bebida.java - Order item
ItemPedido.java - Preparation capability
Preparable.java - Customization capability
Personalizable.java
Billing and discounts
- Receipt
Boleta.java - Discount strategy
EstrategiaDescuento.java - Percentage discount
DescuentoPorcentaje.java - No discount
SinDescuento.java
Other components
- Demo workflow
Main.java
Connections 28
- Demo workflow → Customer: creates
Main.java - Demo workflow → Courier: creates
Main.java - Demo workflow → Order: creates
Main.java - Demo workflow → Delivery address: creates
Main.java - Demo workflow → Pizza: creates
Main.java - Demo workflow → Garlic bread: creates
Main.java - Demo workflow → Drink: creates
Main.java - Demo workflow → Percentage discount: applies
Main.java - Demo workflow → Preparation capability: uses
Main.java - Demo workflow → Customization capability: uses
Main.java - Person base → Customer: base class
Cliente.java - Person base → Courier: base class
Repartidor.java - Order → Customer: stores
Pedido.java - Order → Courier: stores
Pedido.java - Order → Delivery address: stores
Pedido.java - Order → Order item: accepts and totals
Pedido.java - Order → Discount strategy: calculates discount
Pedido.java - Order → Receipt: prints receipt
Pedido.java - Percentage discount → Discount strategy: implements
DescuentoPorcentaje.java - No discount → Discount strategy: implements
SinDescuento.java - Pizza → Order item: implements
Pizza.java - Drink → Order item: implements
Bebida.java - Garlic bread → Order item: implements
PaloDeAjo.java - Pizza → Preparation capability: implements
Pizza.java - Pizza → Customization capability: implements
Pizza.java - Garlic bread → Preparation capability: implements
PaloDeAjo.java - Garlic bread → Customization capability: implements
PaloDeAjo.java - Garlic bread → Pizza: reuses preparation state
PaloDeAjo.java