Add ideas for MultiProduct

This commit is contained in:
Mathis Kral 2023-11-02 19:27:27 +01:00 committed by Simon Bruder
parent 95a2d9bab0
commit 6b8bb8dacb
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 31 additions and 12 deletions

View file

@ -22,6 +22,25 @@ package Salespoint {
package catering.catalog {
class Consumable
class Rentable
class MultiProduct {
+ getPrice()
}
class customProduct
class Employee {
+ getMaxHours()
+ getSalaryPerHour()
}
note "this could work" as myNote
MultiProduct --|> Salespoint.Product
MultiProduct "1" o-- "*" customProduct
customProduct ..> Consumable
customProduct ..> Rentable
customProduct ..> Employee
myNote .- Employee
}
package catering.order {
@ -32,16 +51,16 @@ package catering.order {
+ buy(cart : Cart, userAccount : UserAccount) : String
+ orders(model : Model) : String
}
OrderController --> OrderManager : "-orderManager"
OrderController ..> Model
OrderController ..> UserAccount
OrderController ..> Order
OrderController ..> OrderStatus
OrderController ..> Cash
OrderController ..> Quantity
OrderController ..> Cart
OrderController ..> Consumable
OrderController ..> Rentable
OrderController --> OrderManager : "-orderManager"
OrderController ..> Model
OrderController ..> UserAccount
OrderController ..> Order
OrderController ..> OrderStatus
OrderController ..> Cash
OrderController ..> Quantity
OrderController ..> Cart
OrderController ..> catering.catalog.multiProduct
}
@enduml

BIN
src/main/asciidoc/models/design/order.svg (Stored with Git LFS)

Binary file not shown.