Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Ejercicios-Modelado/ej10.puml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
44 lines (37 sloc)
899 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Ejercicio 10 | |
'-------------------------------------- | |
@startuml | |
title Ejercicio 10 - Circuito comercial \n Modelo Conceptual | |
!include estilos/draft.iuml | |
'Entidades | |
!include clases/ej10.iuml | |
'Relaciones | |
Cliente *-d- "*" Venta | |
Producto *-l- "*" Venta | |
'Reglas de negocio | |
note as n1 | |
RN-01: Precios | |
Venta.precioVenta ≤ Producto.precio | |
end note | |
n1 .u. Producto | |
n1 .l. Venta | |
note as n2 | |
RN-02: Cantidades | |
cant_pedido ≤ cant_oferta ∧ | |
cant_entrega ≤ cant_pedido | |
end note | |
n2 .d. Venta | |
note as n3 | |
RN-03: Fechas | |
fechaOferta ≤ fechaPedido ∧ | |
fechaPedido ≤ fechaEntrega ∧ | |
fechaEntrega ≤ fechaFactura ∧ | |
fechaFactura ≤ fechaCobro | |
end note | |
n3 .d. Venta | |
note left of Venta::importeFactura | |
RN-04: Derivación importe factura | |
importeFactura(cantEntrega, precioVenta) | |
=cantEntrega*precioVenta iF=cantEntrega*precioVenta | |
end note | |
@enduml |