% --- 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;