mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Update order-diagram to be closer to prototype
This commit is contained in:
parent
de64a048bc
commit
5e896fc980
|
@ -1,7 +1,4 @@
|
|||
@startuml
|
||||
'maybe for mathis kral since he did videoshop:order-limit'
|
||||
'maybe for eren since he did videoshop:clickable-cart-item'
|
||||
'maybe for erik since he did videoshop:cart-remove'
|
||||
skinparam linetype ortho
|
||||
skinparam groupInheritance 2
|
||||
|
||||
|
@ -10,7 +7,7 @@ package Spring {
|
|||
}
|
||||
|
||||
package Salespoint {
|
||||
interface OrderManager <<"T > Order">>
|
||||
interface OrderManager <T extends Order>
|
||||
class Cart
|
||||
class Cash
|
||||
class Order
|
||||
|
@ -42,27 +39,26 @@ package catering.order {
|
|||
class OrderController {
|
||||
+ OrderController()
|
||||
+ initializeCart() : Cart
|
||||
+ addProductToCart(product : Product, amount : int, cart: Cart)
|
||||
+ addProductToOrder(product : Product, order : Order, amount : int)
|
||||
+ removeProductFromOrder(product : Product, order : Order, amount : int)
|
||||
+ complete(cart : Cart, userAccount : UserAccount) : String
|
||||
+ planEvent(model : Model) : String
|
||||
+ addProduct(productForm : ProductForm, model : Model) : String
|
||||
+ removeProduct(product : Product, model : Model) : String
|
||||
+ checkout(userAccount : UserAccount, model : Model) : String
|
||||
+ getOrders(model : Model) : String
|
||||
+ cancelOrder(order : Order) : boolean
|
||||
+ getWorkingHours(employee : Employee) : Map<Day, Hours>
|
||||
+ getRents(rentable : Rentable) : List<Tuple<DayTime>>
|
||||
+ TODOOO()
|
||||
+ removeOrder(order : Order) : boolean
|
||||
}
|
||||
|
||||
class ProductForm
|
||||
|
||||
OrderController ---> OrderManager : "-orderManager"
|
||||
OrderController ---> Cart : "-cart"
|
||||
OrderController ..> Model
|
||||
OrderController ...> UserAccount
|
||||
OrderController ...> Order
|
||||
OrderController ...> OrderStatus
|
||||
OrderController ...> Cash
|
||||
OrderController ...> Quantity
|
||||
OrderController ...> Cart
|
||||
OrderController ...> CustomOrder
|
||||
CustomOrder o--- "1" OrderType : -orderType
|
||||
OrderController ...> ProductForm
|
||||
N1 ..> OrderType
|
||||
}
|
||||
|
||||
|
|
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