summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/4-3-24.mp
blob: 6c6cb4a1a8384a98c60817bb0b0794627d89b189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% --- start of displayed preamble in the book ---
input metauml
% --- end of displayed preamble in the book ---
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
Begin.b;
End.e;
State.c("Component")();
State.composite("Composite")(b,e,c);
b.midx = e.midx = c.midx;
c.top = b.bottom - 20;
e.top = c.bottom - 20;

composite.info.drawNameLine := 1;
drawObject(composite);

link(transition)(b.s -- c.n);
link(transition)(c.s -- e.n);
endfig;
end;