• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 11 pages
Summary

Sumario 06_JAVA_MARKET

Document preview thumbnail
Preview 2 out of 11 pages

06_JAVA_MARKET (06_JAVA_MARKET)

Content preview

🏗️ EJERCICIO 6 — JAVA-MARKET

Arquitectura Profesional en Java (Inventario + Ventas)


Rol activo: Arquitecto de Software Java.
Esto ya no es “hacer ejercicios”: es diseñar un sistema coherente, extensible y seguro.

🎯 Objetivo académico:
Que este proyecto pueda defenderse como Proyecto Final de 1º (Ingeniería / DAM
/ DAW) con nota alta.




🧩 ARQUITECTURA UML (ASCII)

┌──────────────────────┐
│Vendible (interface) │
├──────────────────────┤
│ + calcularPrecioVenta():double
│ + getID():String |
└──────────▲───────────┘
│ implements
┌──────────┴───────────┐
│ Producto (abstract)│
├──────────────────────┤
│ # id : String │
│ # nombre : String │
│ # precioBase : double│
├──────────────────────┤
│ + getID() │
│ + getNombre() │
│ + getPrecioBase() │
│ + calcularPrecioVenta() (abs)
└──────────▲───────────┘
│
┌─────────────┴─────────────┐
│ │
┌────────────────────┐ ┌────────────────────┐

, │ Electronica │ │ Alimentacion │
├────────────────────┤ ├────────────────────┤
│ + impuesto 20% │ │ -diasCaducidad:int │
├────────────────────┤ ├────────────────────┤
│ + calcularPrecio() │ │ + calcularPrecio() │
└────────────────────┘ └────────────────────┘




┌────────────────────────────────────┐
│ GestorInventario │
├────────────────────────────────────┤
│ - stock : HashMap<String,Producto> │
├────────────────────────────────────┤
│ + agregarProducto(p) │
│ + eliminarProducto(id) │
│ + venderProducto(id) throws Exc │
│ + listar() │
│ + cargarCSV() │
│ + guardarCSV() │
└────────────────────────────────────┘




🧠 DECISIONES DE ARQUITECTO

✅ ¿Por qué Interface Vendible ?


Porque separa qué se puede vender de cómo es el producto.

Mañana puedes vender:

servicios,
suscripciones,
packs…

sin tocar el sistema base.

👉 Es polimorfismo real de negocio.

Document information

Uploaded on
January 18, 2026
Number of pages
11
Written in
2025/2026
Type
Summary
$4.03

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
1
Followers
0
Items
17
Last sold
8 months ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions