X Tutup
Skip to content

Commit 5c2e2ff

Browse files
committed
Consistent UML model naming across all examples.
1 parent 8524c75 commit 5c2e2ff

File tree

96 files changed

+1662
-1355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1662
-1355
lines changed
-45.9 KB
Binary file not shown.
21.1 KB
Loading
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<class-diagram version="1.1.8" icons="true" automaticImage="PNG" always-add-relationships="false" generalizations="true"
3+
realizations="true" associations="true" dependencies="false" nesting-relationships="true">
4+
<interface id="1" language="java" name="com.iluwatar.abstractfactory.Army" project="abstract-factory"
5+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/Army.java" binary="false" corner="BOTTOM_RIGHT">
6+
<position height="70" width="161" x="1407" y="300"/>
7+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
8+
sort-features="false" accessors="true" visibility="true">
9+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
10+
<operations public="true" package="true" protected="true" private="true" static="true"/>
11+
</display>
12+
</interface>
13+
<interface id="2" language="java" name="com.iluwatar.abstractfactory.KingdomFactory" project="abstract-factory"
14+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/KingdomFactory.java" binary="false"
15+
corner="BOTTOM_RIGHT">
16+
<position height="124" width="161" x="1001" y="300"/>
17+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
18+
sort-features="false" accessors="true" visibility="true">
19+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
20+
<operations public="true" package="true" protected="true" private="true" static="true"/>
21+
</display>
22+
</interface>
23+
<class id="3" language="java" name="com.iluwatar.abstractfactory.ElfCastle" project="abstract-factory"
24+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/ElfCastle.java" binary="false"
25+
corner="BOTTOM_RIGHT">
26+
<position height="106" width="161" x="96" y="118"/>
27+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
28+
sort-features="false" accessors="true" visibility="true">
29+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
30+
<operations public="true" package="true" protected="true" private="true" static="true"/>
31+
</display>
32+
</class>
33+
<class id="4" language="java" name="com.iluwatar.abstractfactory.ElfKingdomFactory" project="abstract-factory"
34+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/ElfKingdomFactory.java" binary="false"
35+
corner="BOTTOM_RIGHT">
36+
<position height="142" width="161" x="900" y="118"/>
37+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
38+
sort-features="false" accessors="true" visibility="true">
39+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
40+
<operations public="true" package="true" protected="true" private="true" static="true"/>
41+
</display>
42+
</class>
43+
<class id="5" language="java" name="com.iluwatar.abstractfactory.ElfKing" project="abstract-factory"
44+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/ElfKing.java" binary="false"
45+
corner="BOTTOM_RIGHT">
46+
<position height="106" width="161" x="498" y="118"/>
47+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
48+
sort-features="false" accessors="true" visibility="true">
49+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
50+
<operations public="true" package="true" protected="true" private="true" static="true"/>
51+
</display>
52+
</class>
53+
<interface id="6" language="java" name="com.iluwatar.abstractfactory.King" project="abstract-factory"
54+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/King.java" binary="false" corner="BOTTOM_RIGHT">
55+
<position height="70" width="161" x="599" y="300"/>
56+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
57+
sort-features="false" accessors="true" visibility="true">
58+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
59+
<operations public="true" package="true" protected="true" private="true" static="true"/>
60+
</display>
61+
</interface>
62+
<class id="7" language="java" name="com.iluwatar.abstractfactory.OrcCastle" project="abstract-factory"
63+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/OrcCastle.java" binary="false"
64+
corner="BOTTOM_RIGHT">
65+
<position height="106" width="161" x="297" y="118"/>
66+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
67+
sort-features="false" accessors="true" visibility="true">
68+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
69+
<operations public="true" package="true" protected="true" private="true" static="true"/>
70+
</display>
71+
</class>
72+
<class id="8" language="java" name="com.iluwatar.abstractfactory.OrcKing" project="abstract-factory"
73+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/OrcKing.java" binary="false"
74+
corner="BOTTOM_RIGHT">
75+
<position height="106" width="161" x="699" y="118"/>
76+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
77+
sort-features="false" accessors="true" visibility="true">
78+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
79+
<operations public="true" package="true" protected="true" private="true" static="true"/>
80+
</display>
81+
</class>
82+
<class id="9" language="java" name="com.iluwatar.abstractfactory.ElfArmy" project="abstract-factory"
83+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/ElfArmy.java" binary="false"
84+
corner="BOTTOM_RIGHT">
85+
<position height="106" width="161" x="1306" y="118"/>
86+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
87+
sort-features="false" accessors="true" visibility="true">
88+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
89+
<operations public="true" package="true" protected="true" private="true" static="true"/>
90+
</display>
91+
</class>
92+
<class id="10" language="java" name="com.iluwatar.abstractfactory.OrcArmy" project="abstract-factory"
93+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/OrcArmy.java" binary="false"
94+
corner="BOTTOM_RIGHT">
95+
<position height="106" width="161" x="1507" y="118"/>
96+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
97+
sort-features="false" accessors="true" visibility="true">
98+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
99+
<operations public="true" package="true" protected="true" private="true" static="true"/>
100+
</display>
101+
</class>
102+
<interface id="11" language="java" name="com.iluwatar.abstractfactory.Castle" project="abstract-factory"
103+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/Castle.java" binary="false" corner="BOTTOM_RIGHT">
104+
<position height="70" width="161" x="197" y="300"/>
105+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
106+
sort-features="false" accessors="true" visibility="true">
107+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
108+
<operations public="true" package="true" protected="true" private="true" static="true"/>
109+
</display>
110+
</interface>
111+
<class id="12" language="java" name="com.iluwatar.abstractfactory.OrcKingdomFactory" project="abstract-factory"
112+
file="/abstract-factory/src/main/java/com/iluwatar/abstractfactory/OrcKingdomFactory.java" binary="false"
113+
corner="BOTTOM_RIGHT">
114+
<position height="142" width="165" x="1101" y="118"/>
115+
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
116+
sort-features="false" accessors="true" visibility="true">
117+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
118+
<operations public="true" package="true" protected="true" private="true" static="true"/>
119+
</display>
120+
</class>
121+
<realization id="13">
122+
<end type="SOURCE" refId="4"/>
123+
<end type="TARGET" refId="2"/>
124+
</realization>
125+
<realization id="14">
126+
<end type="SOURCE" refId="7"/>
127+
<end type="TARGET" refId="11"/>
128+
</realization>
129+
<realization id="15">
130+
<end type="SOURCE" refId="8"/>
131+
<end type="TARGET" refId="6"/>
132+
</realization>
133+
<realization id="16">
134+
<end type="SOURCE" refId="3"/>
135+
<end type="TARGET" refId="11"/>
136+
</realization>
137+
<realization id="17">
138+
<end type="SOURCE" refId="10"/>
139+
<end type="TARGET" refId="1"/>
140+
</realization>
141+
<realization id="18">
142+
<end type="SOURCE" refId="12"/>
143+
<end type="TARGET" refId="2"/>
144+
</realization>
145+
<realization id="19">
146+
<end type="SOURCE" refId="5"/>
147+
<end type="TARGET" refId="6"/>
148+
</realization>
149+
<realization id="20">
150+
<end type="SOURCE" refId="9"/>
151+
<end type="TARGET" refId="1"/>
152+
</realization>
153+
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
154+
sort-features="false" accessors="true" visibility="true">
155+
<attributes public="true" package="true" protected="true" private="true" static="true"/>
156+
<operations public="true" package="true" protected="true" private="true" static="true"/>
157+
</classifier-display>
158+
<association-display labels="true" multiplicity="true"/>
159+
</class-diagram>

abstract-factory/etc/test.ucls

Lines changed: 0 additions & 10 deletions
This file was deleted.

adapter/etc/adapter.jpg

-33 KB
Binary file not shown.

adapter/etc/adapter.png

11.7 KB
Loading
Lines changed: 31 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,64 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<class-diagram version="1.1.7" icons="true" automaticImage="PNG" always-add-relationships="false" generalizations="true"
2+
<class-diagram version="1.1.8" icons="true" automaticImage="PNG" always-add-relationships="false" generalizations="true"
33
realizations="true" associations="true" dependencies="false" nesting-relationships="true">
4-
<interface id="1" language="java" name="com.iluwater.Service" project="service-locator"
5-
file="/service-locator/src/main/java/com/iluwater/Service.java" binary="false" corner="BOTTOM_RIGHT">
6-
<position height="-1" width="-1" x="110" y="182"/>
4+
<class id="1" language="java" name="com.iluwatar.adapter.GnomeEngineeringManager" project="adapter"
5+
file="/adapter/src/main/java/com/iluwatar/adapter/GnomeEngineeringManager.java" binary="false" corner="BOTTOM_RIGHT">
6+
<position height="106" width="224" x="110" y="210"/>
77
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
88
sort-features="false" accessors="true" visibility="true">
99
<attributes public="true" package="true" protected="true" private="true" static="true"/>
1010
<operations public="true" package="true" protected="true" private="true" static="true"/>
1111
</display>
12-
</interface>
13-
<class id="2" language="java" name="com.iluwater.ServiceImpl" project="service-locator"
14-
file="/service-locator/src/main/java/com/iluwater/ServiceImpl.java" binary="false" corner="BOTTOM_RIGHT">
15-
<position height="-1" width="-1" x="342" y="374"/>
12+
</class>
13+
<interface id="2" language="java" name="com.iluwatar.adapter.Engineer" project="adapter"
14+
file="/adapter/src/main/java/com/iluwatar/adapter/Engineer.java" binary="false" corner="BOTTOM_RIGHT">
15+
<position height="88" width="141" x="110" y="356"/>
1616
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
1717
sort-features="false" accessors="true" visibility="true">
1818
<attributes public="true" package="true" protected="true" private="true" static="true"/>
1919
<operations public="true" package="true" protected="true" private="true" static="true"/>
2020
</display>
21-
</class>
22-
<class id="3" language="java" name="com.iluwater.ServiceLocator" project="service-locator"
23-
file="/service-locator/src/main/java/com/iluwater/ServiceLocator.java" binary="false" corner="BOTTOM_RIGHT">
24-
<position height="-1" width="-1" x="702" y="175"/>
21+
</interface>
22+
<class id="3" language="java" name="com.iluwatar.adapter.GnomeEngineer" project="adapter"
23+
file="/adapter/src/main/java/com/iluwatar/adapter/GnomeEngineer.java" binary="false" corner="BOTTOM_RIGHT">
24+
<position height="106" width="141" x="374" y="210"/>
2525
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
2626
sort-features="false" accessors="true" visibility="true">
2727
<attributes public="true" package="true" protected="true" private="true" static="true"/>
2828
<operations public="true" package="true" protected="true" private="true" static="true"/>
2929
</display>
3030
</class>
31-
<class id="4" language="java" name="com.iluwater.ServiceCache" project="service-locator"
32-
file="/service-locator/src/main/java/com/iluwater/ServiceCache.java" binary="false" corner="BOTTOM_RIGHT">
33-
<position height="-1" width="-1" x="397" y="81"/>
31+
<class id="4" language="java" name="com.iluwatar.adapter.GoblinGlider" project="adapter"
32+
file="/adapter/src/main/java/com/iluwatar/adapter/GoblinGlider.java" binary="false" corner="BOTTOM_RIGHT">
33+
<position height="142" width="130" x="374" y="356"/>
3434
<display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"
3535
sort-features="false" accessors="true" visibility="true">
3636
<attributes public="true" package="true" protected="true" private="true" static="true"/>
3737
<operations public="true" package="true" protected="true" private="true" static="true"/>
3838
</display>
3939
</class>
4040
<realization id="5">
41-
<end type="SOURCE" refId="2"/>
42-
<end type="TARGET" refId="1"/>
41+
<end type="SOURCE" refId="1"/>
42+
<end type="TARGET" refId="2"/>
4343
</realization>
44-
<association id="6">
45-
<end type="SOURCE" refId="3" navigable="false">
46-
<attribute id="7" name="serviceCache">
47-
<position height="0" width="0" x="0" y="0"/>
48-
</attribute>
49-
<multiplicity id="8" minimum="0" maximum="1">
50-
<position height="0" width="0" x="0" y="0"/>
51-
</multiplicity>
44+
<realization id="6">
45+
<end type="SOURCE" refId="3"/>
46+
<end type="TARGET" refId="2"/>
47+
</realization>
48+
<association id="7">
49+
<end type="SOURCE" refId="1" navigable="false">
50+
<attribute id="8" name="engineer"/>
51+
<multiplicity id="9" minimum="0" maximum="1"/>
5252
</end>
53-
<end type="TARGET" refId="4" navigable="true"/>
53+
<end type="TARGET" refId="2" navigable="true"/>
5454
<display labels="true" multiplicity="true"/>
5555
</association>
56-
<association id="9">
57-
<end type="SOURCE" refId="4" navigable="false">
58-
<attribute id="10" name="serviceCache">
59-
<position height="0" width="0" x="0" y="0"/>
60-
</attribute>
61-
<multiplicity id="11" minimum="0" maximum="2147483647">
62-
<position height="0" width="0" x="0" y="0"/>
63-
</multiplicity>
56+
<association id="10">
57+
<end type="SOURCE" refId="3" navigable="false">
58+
<attribute id="11" name="glider"/>
59+
<multiplicity id="12" minimum="0" maximum="1"/>
6460
</end>
65-
<end type="TARGET" refId="1" navigable="true"/>
61+
<end type="TARGET" refId="4" navigable="true"/>
6662
<display labels="true" multiplicity="true"/>
6763
</association>
6864
<classifier-display autosize="true" stereotype="true" package="true" initial-value="false" signature="true"

adapter/etc/test.ucls

Lines changed: 0 additions & 10 deletions
This file was deleted.

bridge/etc/bridge.jpg

-163 KB
Binary file not shown.

bridge/etc/bridge.png

47.6 KB
Loading

0 commit comments

Comments
 (0)
X Tutup