How uninorte-oop/pizzeria works
Main Components
• Core Domain Classes:
• Pizzeria.java: Likely central to managing the overall pizzeria process.
• Pedido.java and its subclasses (PedidoOnLine.java, PedidoTelefono.java): These capture different ordering channels.
• Item.java: Represents items on the pizzeria menu.
• Cliente.java (inside the person package): Represents the customers.
• Application/Execution Layer:
• Main1.java: The entry point where the application kicks off.
• Build and Configuration:
• Files like build.xml and nbproject configuration hints that the project uses an IDE (NetBeans) and relies on Ant for build automation. While these are not runtime system components, they are crucial for understanding project assembly and deployment.
Understand the Relationships and Interactions
• The Main class likely instantiates or orchestrates interactions among the core classes.
• Pizzeria.java would coordinate order placement by interacting with instances of Pedido (and its specific types), and likely it manages a list of Items and Clientes.
• The Pedido subclasses (PedidoOnLine, PedidoTelefono) suggest strategy or polymorphic handling of orders.
• The Cliente, Item, and Pedido classes form the domain model that encapsulates the business logic specific to a pizzeria’s operations.
Key Architectural Patterns
• Polymorphism: Through the use of Pedido subclasses for different ordering modalities.
• Modular Domain: Each business concept (cliente, pedido, item, pizzeria) is organized into its own package, supporting separation of concerns.