forked from CivPirater/minetest-brewery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
domain_model.puml
91 lines (77 loc) · 1.95 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
@startuml Domain Model
hide circle
hide empty
skinparam IconPrivateColor Black
skinparam IconPublicColor Black
skinparam IconProtectedColor Black
skinparam IconPrivateBackgroundColor Black
skinparam IconPublicBackgroundColor #7ACFF5
skinparam ClassStereotypeFontStyle normal
skinparam Shadowing false
skinparam ClassFontStyle bold
skinparam class {
BackgroundColor #7ACFF5
ArrowColor Black
BorderColor Black
}
class "Ingredient" as ING {
- String name
- color
}
class "Drink" as DRINK {
- int yeast_concentration
- int alcohol_percentage
- int alcohol_quantity
- Timestamp time_spent_on_barrel
- Timestamp time_spent_on_fermenter
- String label
- drink()
}
class "Distilery" as DISTILERY {
- int MAX_TEMPERATURE
- int MIN_TEMPERATURE
- int curr_temperature
}
class "Barrel" as BARREL {
- Timestamp sealed_start_date
- Timestamp sealed_end_date
- ItemStack trace_amounts_of
- int capacity_mb
- seal()
- unseal()
}
class "Fermenter" as FERMENTER {
- Timestamp time_start
- Timestamp time_end
+ calculateYeastConcentration()
+ calculateAlcoholPercentage()
+ calculateAlcoholQuantity()
}
class "Yeast" as YEAST {
- double growth_rate
- double lag_phase_duration
- double death_rate
- double stationary_phase
+ generateYeast(humidity, temperature, position)
}
class "Crusher" as CRUSHER {
}
class "Bottler" as BOTTLER {
- craftBottles()
- label()
}
class "Brew Kettle" as KETTLE {
- int temperature
- Timestamp started_boiling
- Timestamp stopped_boiling
- boil()
}
ING "1" -- "1..*" CRUSHER : is crushed by >
ING "1..*" -- "1" KETTLE : is brewed by >
DRINK "1" -- "1..*" KETTLE : is made in a >
DRINK "1" -- "1..*" DISTILERY : is distiled by >
DRINK "1" -- "1..*" BARREL : is aged by >
DRINK "1" -- "1..*" FERMENTER : is fermented by >
DRINK "1" -- "1" BOTTLER : is bottled \nand labeled by >
FERMENTER "*" -- "1" YEAST : uses >
@enduml