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/ej3a.puml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
62 lines (47 sloc)
1.38 KB
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 3 | |
'-------------------------------------- | |
@startuml | |
title Ejecicio 3 - Restaurantes y Gourments (Versión 1) \n Modelo Conceptual | |
!include estilos/draft.iuml | |
'Entidades | |
!include clases/ej3a.iuml | |
'Asociaciones | |
Menú *-- "*" Elemento : contiene > | |
Menú *-- "*" Like : esCalificado > | |
Like "*" --* Gourmet : califica < | |
'Restricciones | |
note left of Menú::precioCoste | |
<u>RN01: Derivación precio del menú</u> | |
Se calcula mediante la suma de Elemento.precioCoste | |
de sus elementos | |
end note | |
note left of Menú::like | |
<u>RN02: Derivación del like del menú</u> | |
Se calcula mediante la media aritmética | |
de Like.like de todos los Likes del Menú | |
end note | |
note top of Menú | |
<u>RN03: Precios</u> | |
precioVenta >= precioCoste | |
end note | |
@enduml | |
@startuml | |
title Ejecicio 3 - Restaurantes y Gourments (Versión 1) \n Diagrama de Objetos | |
!include estilos/final.iuml | |
'Objetos | |
!include objetos/ej3a.iuml | |
'Enlaces | |
hp *-- p1 : __contiene__ | |
hp *-- p2 : __contiene__ | |
hg *-- p3 : __contiene__ | |
hg *-- p4 : __contiene__ | |
hp *-- l_hp_g1 : __esCalificado__ | |
g1 *-u- l_hp_g1 : __califica__ | |
hp *-- l_hp_g2 : __esCalificado__ | |
g2 *-u- l_hp_g2 : __califica__ | |
hg *-- l_hg_g1 : __esCalificado__ | |
g1 *-- l_hg_g1 : __califica__ | |
hg *-- l_hg_g2 : __esCalificado__ | |
g2 *-- l_hg_g2 : __califica__ | |
@enduml | |