mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Add ideas for MultiProduct
This commit is contained in:
parent
95a2d9bab0
commit
6b8bb8dacb
|
@ -22,6 +22,25 @@ package Salespoint {
|
||||||
package catering.catalog {
|
package catering.catalog {
|
||||||
class Consumable
|
class Consumable
|
||||||
class Rentable
|
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 {
|
package catering.order {
|
||||||
|
@ -32,16 +51,16 @@ package catering.order {
|
||||||
+ buy(cart : Cart, userAccount : UserAccount) : String
|
+ buy(cart : Cart, userAccount : UserAccount) : String
|
||||||
+ orders(model : Model) : String
|
+ orders(model : Model) : String
|
||||||
}
|
}
|
||||||
OrderController --> OrderManager : "-orderManager"
|
|
||||||
OrderController ..> Model
|
OrderController --> OrderManager : "-orderManager"
|
||||||
OrderController ..> UserAccount
|
OrderController ..> Model
|
||||||
OrderController ..> Order
|
OrderController ..> UserAccount
|
||||||
OrderController ..> OrderStatus
|
OrderController ..> Order
|
||||||
OrderController ..> Cash
|
OrderController ..> OrderStatus
|
||||||
OrderController ..> Quantity
|
OrderController ..> Cash
|
||||||
OrderController ..> Cart
|
OrderController ..> Quantity
|
||||||
OrderController ..> Consumable
|
OrderController ..> Cart
|
||||||
OrderController ..> Rentable
|
OrderController ..> catering.catalog.multiProduct
|
||||||
}
|
}
|
||||||
|
|
||||||
@enduml
|
@enduml
|
BIN
src/main/asciidoc/models/design/order.svg
(Stored with Git LFS)
BIN
src/main/asciidoc/models/design/order.svg
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in a new issue