wholeTomProcessContrib.tex 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. %\begin{figure}[H]
  2. % Define the layers to draw the diagram
  3. \pgfdeclarelayer{tomgombackground}
  4. \pgfdeclarelayer{tombackground}
  5. \pgfsetlayers{tomgombackground,tombackground,main}
  6. % Define a new shape: page with a folded corner
  7. \makeatletter
  8. \pgfdeclareshape{flippedpage}{
  9. \inheritsavedanchors[from=rectangle] % this is nearly a rectangle
  10. \inheritanchorborder[from=rectangle]
  11. \inheritanchor[from=rectangle]{center}
  12. \inheritanchor[from=rectangle]{north}
  13. \inheritanchor[from=rectangle]{south}
  14. \inheritanchor[from=rectangle]{west}
  15. \inheritanchor[from=rectangle]{east}
  16. % ... and possibly more
  17. \backgroundpath{% this is new
  18. % store lower left in xa/ya and upper right in xb/yb
  19. \southwest \pgf@xa=\pgf@x \pgf@ya=\pgf@y
  20. \northeast \pgf@xb=\pgf@x \pgf@yb=\pgf@y
  21. % compute corner of ``flipped page''
  22. \pgf@xc=\pgf@xb \advance\pgf@xc by-5pt % this should be a parameter
  23. \pgf@yc=\pgf@yb \advance\pgf@yc by-5pt
  24. % diagonal path of the corner
  25. \pgfpathmoveto{\pgfpoint{\pgf@xa}{\pgf@ya}}
  26. \pgfpathlineto{\pgfpoint{\pgf@xa}{\pgf@yb}}
  27. \pgfpathlineto{\pgfpoint{\pgf@xc}{\pgf@yb}}
  28. \pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@yc}}
  29. \pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@ya}}
  30. \pgfpathclose
  31. % add little corner
  32. \pgfpathmoveto{\pgfpoint{\pgf@xc}{\pgf@yb}}
  33. \pgfpathlineto{\pgfpoint{\pgf@xc}{\pgf@yc}}
  34. \pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@yc}}
  35. \pgfpathlineto{\pgfpoint{\pgf@xc}{\pgf@yc}}
  36. }
  37. }
  38. % Define block styles
  39. \tikzstyle{compiler}=[draw, fill=blue!20, text width=6em, text centered, minimum height=2.5em, rounded corners]
  40. \tikzstyle{compiler2}=[diamond, aspect=2, draw, text centered, rounded
  41. corners=1, text width=5.8em]
  42. \tikzstyle{code}=[draw,shape=flippedpage,text width=3em, text centered,
  43. minimum height=4.2em,fill=white]
  44. \tikzstyle{texttitle}=[fill=white, rounded corners, draw=black!50, dashed]
  45. \tikzstyle{background}=[fill=yellow!20, rounded corners, draw=black!50, dashed]
  46. % \begin{center}
  47. \begin{tikzpicture}[>=latex, on grid, auto, node distance=2.3cm]
  48. % Draw diagram elements
  49. \node (tomcomp) [dashed, compiler2] {\figcode{\textbf{Compilateur {\tom}}}};
  50. \node (tomcode) [code, dashed, left of=tomcomp,xshift=-0.9cm] {\figcode{Tom \\ + \\ Java
  51. % \\ \%transformation\\
  52. % \%resolve
  53. }};
  54. \node (mapping) [code, above of=tomcomp] {\figcode{Ancrages algébriques}};
  55. \node (gomcomp) [compiler2, above of=mapping] {\figcode{\textbf{{\gom}}}};
  56. \node (gomsig) [code, left of=gomcomp,xshift=-0.9cm] {\figcode{Signature} \\ \figcode{Gom}};
  57. \node (datastruct) [code, right of=gomcomp,xshift=1.0cm] {\figcode{Structures \\ de \\ données \\ Java}};
  58. \node (emfmapping) [code, dashed, below of=tomcomp] {\figcode{Ancrages algébriques}};
  59. \node (tomemf) [compiler2, dashed, below of=emfmapping] {\figcode{\textbf{{\tomemf}}}};
  60. \node (emfstruct) [code, left of=tomemf,xshift=-0.9cm] {\figcode{Java EMF (MM)}};
  61. \node (javacode) [code, right of=tomcomp,xshift=1.0cm] {\figcode{Code Java}};
  62. \node (mmlien) [dashed, code, below of=javacode] {\figcode{MM de\\ lien}};
  63. \node (javacomp) [compiler2, right of=javacode,xshift=0.9cm] {\figcode{\textbf{Compilateur {\java}}}};
  64. \node (bytecode) [code, right of=javacomp,xshift=0.9cm] {\figcode{110010}\\\figcode{101110}\\\figcode{010100}};
  65. \path[->] (javacomp) edge (bytecode);
  66. % Draw arrows between elements
  67. \path[->] (gomsig) edge (gomcomp);
  68. \path[->] (gomcomp) edge (mapping);
  69. \path[->] (mapping) edge (tomcomp);
  70. \path[->, dashed] (tomemf) edge (emfmapping);
  71. \path[->] (emfmapping) edge (tomcomp);
  72. \path[->] (gomcomp.east) edge (datastruct);
  73. \draw[->] (datastruct) -- ++(3.2,0) -- (javacomp);
  74. \path[->] (emfstruct) edge (tomemf);
  75. \path[->] (tomcode) edge (tomcomp);
  76. \path[->] (tomcomp) edge (javacode);
  77. \path[->] (javacode) edge (javacomp);
  78. \draw[->] (emfstruct) -- ++(0,-1) -- ++(9.7,0) -- (javacomp);
  79. \path[->, dashed] (tomcomp) edge (mmlien);
  80. \path[->] (mmlien) edge (javacomp);
  81. \end{tikzpicture}
  82. % \end{center}
  83. % \caption{Fonctionnement global de {\tom} et contributions de ce travail de thèse au projet.}
  84. %\label{fig:wholeTomProcessContrib}
  85. %\end{figure}