This repository was archived by the owner on Jan 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdomain-model.puml
119 lines (105 loc) · 2.61 KB
/
domain-model.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@startuml
hide empty fields
hide empty methods
package RecipeLibrary {
interface Resource {
String name
}
class PurchasedResource implements Resource {
}
class Recipe implements Resource {
String externalUrl
Quantity yield
Duration time
String directions
}
class RecipeItem {
String raw
Quantity quantity
String preparation
}
Recipe *-r- "*" RecipeItem : items
Resource "1" --o RecipeItem : resource
}
package Planner {
class PlanItem {
String name
boolean deleted
DateTime scheduledFor
}
PlanItem o-r- "*" PlanItem : children
note bottom on link : plan hierarchy
PlanItem *- "*" PlanItem : recipeComponents
note bottom on link
other PlanItems, regardless
of location, which came from
this PlanItem's "create event"
end note
PlanItem o-l- "1" PlanItemStatus : status
RecipeItem "?" -o PlanItem : recipeItem
Recipe "1" --o PlanItem : recipe
class Plan extends PlanItem {
Owner owner
}
enum PlanItemStatus {
NEEDED
ACQUIRED
COMPLETED
}
/'
package impl {
class SectionItemImpl extends PlanItem {
String name
DateTime scheduledFor
List<PlanItem> children
}
class RecipeItemImpl extends PlanItem {
String name
Recipe recipe
List<PlanItem> children
List<PlanItem> recipeComponents
}
SectionItemImpl -[hidden]> RecipeItemImpl
class SplitItemImpl extends PlanItem {
String name
Recipe recipe
List<PlanItem> children
PlanItem componentOf
}
class IngredientItemImpl extends PlanItem {
String name
PlanItem componentOf
}
class AdHocItemImpl extends PlanItem {
String name
}
}
'/
}
package Tasks {
class Task {
String name
boolean deleted
}
Task *- "*" Task : children
class TaskList extends Task {
Owner owner
}
}
package Shopping {
class ShoppingList {
Owner owner
}
ShoppingList *-- "*" ShoppingListItem : items
ShoppingList o-l- "*" TaskList : includedLists
ShoppingList o- "*" Plan : includedPlans
abstract ShoppingListItem {
String name
boolean deleted
}
class ShoppingListTaskItem extends ShoppingListItem
Task "1" -o ShoppingListTaskItem
class ShoppingListPlanItem extends ShoppingListItem
ShoppingListPlanItem o- "+" PlanItem
}
@enduml