doc-src/Codegen/Thy/pictures/architecture.tex
author haftmann
Wed, 01 Apr 2009 15:16:09 +0200
changeset 30836 1344132160bb
parent 30765 3eccfc8019ba
child 38813 f50f0802ba99
permissions -rw-r--r--
proper external tikz pictures
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30734
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     1
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     2
\documentclass[12pt]{article}
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     3
\usepackage{tikz}
30836
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
     4
\usetikzlibrary{shapes}
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
     5
\usetikzlibrary{arrows}
30734
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     6
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     7
\begin{document}
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
     8
30765
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
     9
\thispagestyle{empty}
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    10
\setlength{\fboxrule}{0.01pt}
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    11
\setlength{\fboxsep}{4pt}
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    12
30836
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    13
\fcolorbox{white}{white}{
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    14
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    15
\newcommand{\sys}[1]{\emph{#1}}
30765
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    16
30836
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    17
\begin{tikzpicture}[x = 4cm, y = 1cm]
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    18
  \tikzstyle positive=[color = black, fill = white];
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    19
  \tikzstyle negative=[color = white, fill = black];
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    20
  \tikzstyle entity=[rounded corners, draw, thick];
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    21
  \tikzstyle process=[ellipse, draw, thick];
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    22
  \tikzstyle arrow=[-stealth, semithick];
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    23
  \node (spec) at (0, 3) [entity, positive] {specification tools};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    24
  \node (user) at (1, 3) [entity, positive] {user proofs};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    25
  \node (spec_user_join) at (0.5, 3) [shape=coordinate] {};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    26
  \node (raw) at (0.5, 4) [entity, positive] {raw code equations};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    27
  \node (pre) at (1.5, 4) [process, positive] {preprocessing};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    28
  \node (eqn) at (2.5, 4) [entity, positive] {code equations};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    29
  \node (iml) at (0.5, 0) [entity, positive] {intermediate program};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    30
  \node (seri) at (1.5, 0) [process, positive] {serialisation};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    31
  \node (SML) at (2.5, 3) [entity, positive] {\sys{SML}};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    32
  \node (OCaml) at (2.5, 2) [entity, positive] {\sys{OCaml}};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    33
  \node (further) at (2.5, 1) [entity, positive] {(\ldots)};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    34
  \node (Haskell) at (2.5, 0) [entity, positive] {\sys{Haskell}};
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    35
  \draw [semithick] (spec) -- (spec_user_join);
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    36
  \draw [semithick] (user) -- (spec_user_join);
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    37
  \draw [-diamond, semithick] (spec_user_join) -- (raw);
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    38
  \draw [arrow] (raw) -- (pre);
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    39
  \draw [arrow] (pre) -- (eqn);
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    40
  \draw [arrow] (eqn) -- node (transl) [process, positive] {translation} (iml);
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    41
  \draw [arrow] (iml) -- (seri);
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    42
  \draw [arrow] (seri) -- (SML);
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    43
  \draw [arrow] (seri) -- (OCaml);
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    44
  \draw [arrow, dashed] (seri) -- (further);
1344132160bb proper external tikz pictures
haftmann
parents: 30765
diff changeset
    45
  \draw [arrow] (seri) -- (Haskell);
30734
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    46
\end{tikzpicture}
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    47
30765
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    48
}
3eccfc8019ba not yet fruitful tex experiments with bounding boxes
haftmann
parents: 30734
diff changeset
    49
30734
ab05be086c4a step towards proper pictures in dvi
haftmann
parents:
diff changeset
    50
\end{document}