78 |
Output |
Output |
79 |
------ |
------ |
80 |
|
|
81 |
.. image:: packages.png |
.. UML:: doc-umlnewbie-packages |
82 |
|
|
83 |
|
bigpackage Package |
84 |
|
|
85 |
|
package First |
86 |
|
jlink |
87 |
|
classes.html |
88 |
|
|
89 |
|
package Second |
90 |
|
use First |
91 |
|
------------------------------------------------------------------ |
92 |
|
horizontally(50, h, First, Second); |
93 |
|
|
94 |
|
pad = 30; |
95 |
|
Package.nw = First.nw + (-pad,pad); |
96 |
|
Package.se = Second.se + (pad,-pad); |
97 |
|
|
98 |
------------- |
------------- |
99 |
Class example |
Class example |
173 |
Output |
Output |
174 |
------ |
------ |
175 |
|
|
176 |
.. image:: classes.png |
.. UML:: doc-umlnewbie-classes |
177 |
|
|
178 |
|
jlinkpackage Package.First |
179 |
|
|
180 |
|
bigpackage First |
181 |
|
|
182 |
|
class Interface "interface" |
183 |
|
jlink |
184 |
|
methods |
185 |
|
void first() |
186 |
|
|
187 |
|
class Derived "interface" |
188 |
|
jlink |
189 |
|
inherit Interface |
190 |
|
methods |
191 |
|
void second() |
192 |
|
|
193 |
|
class Abstract "abstract" |
194 |
|
jlink |
195 |
|
methods |
196 |
|
void third() |
197 |
|
|
198 |
|
class Implementation |
199 |
|
jlink |
200 |
|
realize Derived |
201 |
|
realize Abstract |
202 |
|
assoc compos multi(1) - multi(*) role(part_of) Component |
203 |
|
|
204 |
|
class Component |
205 |
|
jlink |
206 |
|
------------------------------------------------------------------ |
207 |
|
Derived.c = (100, 100); |
208 |
|
horizontally(50, derived_h, Interface, Derived, Abstract); |
209 |
|
vertically(50, derived_v, Derived, Implementation); |
210 |
|
|
211 |
|
Component.c = (300, 17); |
212 |
|
horizontally(50, component_h, Component); |
213 |
|
|
214 |
|
pad = 30; |
215 |
|
First.nw = Interface.nw + (-pad,pad); |
216 |
|
First.se = Component.se + (pad,-pad); |
217 |
|
|
218 |
---------------- |
---------------- |
219 |
Sequence example |
Sequence example |
255 |
Output |
Output |
256 |
------ |
------ |
257 |
|
|
258 |
.. image:: sequence.png |
.. UML:: doc-umlnewbie-sequence |
259 |
|
|
260 |
|
seqobject First |
261 |
|
seqobject Second |
262 |
|
seqobject Third |
263 |
|
|
264 |
|
sequence example |
265 |
|
call First "call(...)" |
266 |
|
call Second "call (...)" |
267 |
|
call Third "call (...)" |
268 |
|
call Second "callbac(...)" |
269 |
|
call First "callback(...)" |
270 |
|
return |
271 |
|
return |
272 |
|
return |
273 |
|
return |
274 |
|
return |
275 |
|
------------------------------------------------------------------ |
276 |
|
horizontally(100, h, First, Second, Third); |
277 |
|
|
278 |
|
|