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
|
@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 linetype ortho
|
||||||
skinparam groupInheritance 2
|
skinparam groupInheritance 2
|
||||||
|
|
||||||
|
@ -10,7 +7,7 @@ package Spring {
|
||||||
}
|
}
|
||||||
|
|
||||||
package Salespoint {
|
package Salespoint {
|
||||||
interface OrderManager <<"T > Order">>
|
interface OrderManager <T extends Order>
|
||||||
class Cart
|
class Cart
|
||||||
class Cash
|
class Cash
|
||||||
class Order
|
class Order
|
||||||
|
@ -42,27 +39,26 @@ package catering.order {
|
||||||
class OrderController {
|
class OrderController {
|
||||||
+ OrderController()
|
+ OrderController()
|
||||||
+ initializeCart() : Cart
|
+ initializeCart() : Cart
|
||||||
+ addProductToCart(product : Product, amount : int, cart: Cart)
|
+ planEvent(model : Model) : String
|
||||||
+ addProductToOrder(product : Product, order : Order, amount : int)
|
+ addProduct(productForm : ProductForm, model : Model) : String
|
||||||
+ removeProductFromOrder(product : Product, order : Order, amount : int)
|
+ removeProduct(product : Product, model : Model) : String
|
||||||
+ complete(cart : Cart, userAccount : UserAccount) : String
|
+ checkout(userAccount : UserAccount, model : Model) : String
|
||||||
+ getOrders(model : Model) : String
|
+ getOrders(model : Model) : String
|
||||||
+ cancelOrder(order : Order) : boolean
|
+ removeOrder(order : Order) : boolean
|
||||||
+ getWorkingHours(employee : Employee) : Map<Day, Hours>
|
|
||||||
+ getRents(rentable : Rentable) : List<Tuple<DayTime>>
|
|
||||||
+ TODOOO()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class ProductForm
|
||||||
|
|
||||||
OrderController ---> OrderManager : "-orderManager"
|
OrderController ---> OrderManager : "-orderManager"
|
||||||
|
OrderController ---> Cart : "-cart"
|
||||||
OrderController ..> Model
|
OrderController ..> Model
|
||||||
OrderController ...> UserAccount
|
OrderController ...> UserAccount
|
||||||
OrderController ...> Order
|
|
||||||
OrderController ...> OrderStatus
|
OrderController ...> OrderStatus
|
||||||
OrderController ...> Cash
|
OrderController ...> Cash
|
||||||
OrderController ...> Quantity
|
OrderController ...> Quantity
|
||||||
OrderController ...> Cart
|
|
||||||
OrderController ...> CustomOrder
|
OrderController ...> CustomOrder
|
||||||
CustomOrder o--- "1" OrderType : -orderType
|
CustomOrder o--- "1" OrderType : -orderType
|
||||||
|
OrderController ...> ProductForm
|
||||||
N1 ..> OrderType
|
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