mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Update arrows in catalog.puml
This commit is contained in:
parent
57b1fc9b43
commit
a1fb091bea
|
@ -8,13 +8,12 @@ package javax.money {
|
||||||
|
|
||||||
package Salespoint {
|
package Salespoint {
|
||||||
'https://st.inf.tu-dresden.de/SalesPoint/api//org/salespointframework/catalog/Catalog.html'
|
'https://st.inf.tu-dresden.de/SalesPoint/api//org/salespointframework/catalog/Catalog.html'
|
||||||
interface Catalog << T > Product >> {
|
interface Catalog<T extends Product> {
|
||||||
findByAnyCategory(categories : String) : Streamable<Product>
|
findByAnyCategory(categories : String) : Streamable<Product>
|
||||||
findByAllCategories(categories : String) : Streamable<Product>
|
findByAllCategories(categories : String) : Streamable<Product>
|
||||||
|
|
||||||
}
|
}
|
||||||
interface DataInitializer
|
interface DataInitializer
|
||||||
interface Inventory << T > InventoryItem >>
|
|
||||||
class Product {
|
class Product {
|
||||||
- name : String
|
- name : String
|
||||||
- price : MonetaryAmount
|
- price : MonetaryAmount
|
||||||
|
@ -41,8 +40,8 @@ package catering.catalog {
|
||||||
interface ConsumableCatalog {
|
interface ConsumableCatalog {
|
||||||
+ DEFAULT_SORT : Sort
|
+ DEFAULT_SORT : Sort
|
||||||
}
|
}
|
||||||
RentableCatalog ..> Catalog : "<bind> <T->Rentable"
|
RentableCatalog --|> Catalog
|
||||||
ConsumableCatalog ..> Catalog : "<bind> <T->Catalog"
|
ConsumableCatalog --|> Catalog
|
||||||
|
|
||||||
class Consumable {
|
class Consumable {
|
||||||
- promotionPrice : MonetaryAmount
|
- promotionPrice : MonetaryAmount
|
||||||
|
@ -58,7 +57,7 @@ package catering.catalog {
|
||||||
+ setWholeSalePrice(price : MonetaryAmount)
|
+ setWholeSalePrice(price : MonetaryAmount)
|
||||||
}
|
}
|
||||||
Consumable --|> Product
|
Consumable --|> Product
|
||||||
Consumable ..> MonetaryAmount : use
|
Consumable ..> MonetaryAmount
|
||||||
|
|
||||||
class Rentable {
|
class Rentable {
|
||||||
+ Rentable(name : String, pricePerHour : MonetaryAmount) : Rentable
|
+ Rentable(name : String, pricePerHour : MonetaryAmount) : Rentable
|
||||||
|
@ -73,6 +72,6 @@ package catering.catalog {
|
||||||
CatalogDataInitalizer ..|> DataInitializer
|
CatalogDataInitalizer ..|> DataInitializer
|
||||||
}
|
}
|
||||||
|
|
||||||
'#TODO: to determine which Products of a Category to offer I need to retrieve information about availability of e.g. Cooks and ServicePersonel from the Users or Rentables from the Inventory'
|
'#TODO: to determine which Products of a Category to offer I need to retrieve information about availability of e.g. Cooks and ServicePersonel from the <<use>>rs or Rentables from the Inventory'
|
||||||
|
|
||||||
@enduml
|
@enduml
|
||||||
|
|
Loading…
Reference in a new issue