forked from iluwatar/java-design-patterns
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflyweight.ucls
More file actions
135 lines (135 loc) · 8.31 KB
/
flyweight.ucls
File metadata and controls
135 lines (135 loc) · 8.31 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?xml version="1.0" encoding="UTF-8"?>
<class-diagram version="1.1.8" icons="true" automaticImage="PNG" always-add-relationships="false" generalizations="true"
realizations="true" associations="true" dependencies="false" nesting-relationships="true">
<class id="1" language="java" name="com.iluwatar.flyweight.PoisonPotion" project="flyweight"
file="/flyweight/src/main/java/com/iluwatar/flyweight/PoisonPotion.java" binary="false" corner="BOTTOM_RIGHT">
<position height="106" width="129" x="297" y="254"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="2" language="java" name="com.iluwatar.flyweight.AlchemistShop" project="flyweight"
file="/flyweight/src/main/java/com/iluwatar/flyweight/AlchemistShop.java" binary="false" corner="BOTTOM_RIGHT">
<position height="124" width="129" x="466" y="254"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="3" language="java" name="com.iluwatar.flyweight.HealingPotion" project="flyweight"
file="/flyweight/src/main/java/com/iluwatar/flyweight/HealingPotion.java" binary="false" corner="BOTTOM_RIGHT">
<position height="106" width="129" x="635" y="254"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<enumeration id="4" language="java" name="com.iluwatar.flyweight.PotionType" project="flyweight"
file="/flyweight/src/main/java/com/iluwatar/flyweight/PotionType.java" binary="false" corner="BOTTOM_RIGHT">
<position height="178" width="185" x="72" y="254"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</enumeration>
<class id="5" language="java" name="com.iluwatar.flyweight.PotionFactory" project="flyweight"
file="/flyweight/src/main/java/com/iluwatar/flyweight/PotionFactory.java" binary="false" corner="BOTTOM_RIGHT">
<position height="106" width="212" x="804" y="254"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="6" language="java" name="com.iluwatar.flyweight.InvisibilityPotion" project="flyweight"
file="/flyweight/src/main/java/com/iluwatar/flyweight/InvisibilityPotion.java" binary="false" corner="BOTTOM_RIGHT">
<position height="106" width="141" x="1056" y="254"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<interface id="7" language="java" name="com.iluwatar.flyweight.Potion" project="flyweight"
file="/flyweight/src/main/java/com/iluwatar/flyweight/Potion.java" binary="false" corner="BOTTOM_RIGHT">
<position height="88" width="129" x="797" y="472"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</interface>
<class id="8" language="java" name="com.iluwatar.flyweight.StrengthPotion" project="flyweight"
file="/flyweight/src/main/java/com/iluwatar/flyweight/StrengthPotion.java" binary="false" corner="BOTTOM_RIGHT">
<position height="106" width="132" x="1237" y="254"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<class id="9" language="java" name="com.iluwatar.flyweight.HolyWaterPotion" project="flyweight"
file="/flyweight/src/main/java/com/iluwatar/flyweight/HolyWaterPotion.java" binary="false" corner="BOTTOM_RIGHT">
<position height="106" width="141" x="1409" y="254"/>
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</display>
</class>
<realization id="10">
<end type="SOURCE" refId="6"/>
<end type="TARGET" refId="7"/>
</realization>
<association id="11">
<end type="SOURCE" refId="2" navigable="false">
<attribute id="12" name="topShelf"/>
<multiplicity id="13" minimum="0" maximum="2147483647"/>
</end>
<end type="TARGET" refId="7" navigable="true"/>
<display labels="true" multiplicity="true"/>
</association>
<realization id="14">
<end type="SOURCE" refId="8"/>
<end type="TARGET" refId="7"/>
</realization>
<association id="15">
<end type="SOURCE" refId="2" navigable="false">
<attribute id="16" name="bottomShelf"/>
<multiplicity id="17" minimum="0" maximum="2147483647"/>
</end>
<end type="TARGET" refId="7" navigable="true"/>
<display labels="true" multiplicity="true"/>
</association>
<realization id="18">
<end type="SOURCE" refId="1"/>
<end type="TARGET" refId="7"/>
</realization>
<realization id="19">
<end type="SOURCE" refId="3"/>
<end type="TARGET" refId="7"/>
</realization>
<realization id="20">
<end type="SOURCE" refId="9"/>
<end type="TARGET" refId="7"/>
</realization>
<association id="21">
<end type="SOURCE" refId="5" navigable="false">
<attribute id="22" name="potions"/>
<multiplicity id="23" minimum="0" maximum="2147483647"/>
</end>
<end type="TARGET" refId="7" navigable="true"/>
<display labels="true" multiplicity="true"/>
</association>
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
sort-features="false" accessors="true" visibility="true">
<attributes public="true" package="true" protected="true" private="true" static="true"/>
<operations public="true" package="true" protected="true" private="true" static="true"/>
</classifier-display>
<association-display labels="true" multiplicity="true"/>
</class-diagram>