mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Update inventory design model to match prototype
This commit is contained in:
parent
3feb0dfef2
commit
003e9f39c8
|
@ -1,46 +1,54 @@
|
||||||
@startuml
|
@startuml
|
||||||
'maybe for sbruder since he did videoshop:inventory-increment'
|
|
||||||
'maybe TR0N-ZEN since he did videoshop:keyword-search'
|
|
||||||
skinparam linetype ortho
|
skinparam linetype ortho
|
||||||
skinparam groupInheritance 2
|
skinparam groupInheritance 2
|
||||||
|
|
||||||
package Spring {
|
package Spring {
|
||||||
|
class Assert
|
||||||
|
class Errors
|
||||||
interface Model
|
interface Model
|
||||||
'havent used Assert yet as in example'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package Salespoint {
|
package Salespoint {
|
||||||
interface DataInitializer
|
interface DataInitializer
|
||||||
|
class Product
|
||||||
class Quantity
|
class Quantity
|
||||||
interface UniqueInventory<T extends UniqueInventoryItem>
|
interface UniqueInventory<T extends UniqueInventoryItem>
|
||||||
class UniqueInventoryItem
|
class UniqueInventoryItem
|
||||||
}
|
}
|
||||||
|
|
||||||
package catering.catalog {
|
package catering {
|
||||||
|
package catalog {
|
||||||
interface CateringCatalog
|
interface CateringCatalog
|
||||||
}
|
}
|
||||||
|
|
||||||
package catering.inventory {
|
package inventory {
|
||||||
class InventoryController {
|
class InventoryController {
|
||||||
+ InventoryController(inventory : UniqueInventory)
|
+ InventoryController(inventory : UniqueInventory)
|
||||||
+ stock(model : Model) : String
|
+ list(model : Model) : String
|
||||||
|
+ edit(model : Model, pid : Product) : String
|
||||||
|
+ edit(form : InventoryMutateForm, result : Errors, pid : Product) : String
|
||||||
|
+ add() : String
|
||||||
|
+ add(form : InventoryMutateForm, result : Errors) : String
|
||||||
|
+ delete(pid : Product) : String
|
||||||
}
|
}
|
||||||
InventoryController ..> Model
|
InventoryController ..> InventoryMutateForm
|
||||||
InventoryController --> UniqueInventory : "-inventory"
|
InventoryController .u.> Salespoint.Product
|
||||||
|
InventoryController -u-> "1" Salespoint.UniqueInventory : "-inventory"
|
||||||
|
InventoryController .u.> Salespoint.UniqueInventoryItem
|
||||||
|
InventoryController .u.> Spring.Assert
|
||||||
|
InventoryController .u.> Spring.Errors
|
||||||
|
InventoryController .u.> Spring.Model
|
||||||
|
|
||||||
class InventoryInitializer {
|
class InventoryInitializer {
|
||||||
+ InventoryInitializer(inventory : UniqueInventory, catalog : CateringCatalog)
|
+ InventoryInitializer(inventory : UniqueInventory, catalog : CateringCatalog)
|
||||||
+ initialize() : void
|
+ initialize() : void
|
||||||
}
|
}
|
||||||
InventoryInitializer --> CateringCatalog : "-cateringCatalog"
|
InventoryInitializer --> "1" catering.catalog.CateringCatalog : "-cateringCatalog"
|
||||||
InventoryInitializer ..|> DataInitializer
|
InventoryInitializer .u.|> Salespoint.DataInitializer
|
||||||
InventoryInitializer ..> Quantity
|
InventoryInitializer .u.> Salespoint.Quantity
|
||||||
InventoryInitializer ..> UniqueInventoryItem
|
InventoryInitializer -u-> "1" Salespoint.UniqueInventory : "-inventory"
|
||||||
InventoryInitializer ---> UniqueInventory : "-inventory"
|
InventoryInitializer .u.> Salespoint.UniqueInventoryItem
|
||||||
|
InventoryInitializer .u.> Spring.Assert
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@enduml
|
@enduml
|
||||||
|
|
BIN
src/main/asciidoc/models/design/inventory.svg
(Stored with Git LFS)
BIN
src/main/asciidoc/models/design/inventory.svg
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in a new issue