SPB Git

Repository Public MIT Research preview

MA01-F03-six-architectures.tex 3.8 KB 62 lines latex

1% MA01-F03 — Six architectures en panneaux harmonisés : même gabarit, mêmes symboles, mêmes deux lignes de lecture.2% Idée : une architecture, c'est une FORME de graphe de communication ; la forme dit où sont le goulot et le risque.3% Carré plein = agent qui coordonne ; carré vide = agent qui exécute ; cylindre = état partagé.4\begin{tikzpicture}[x=1mm, y=1mm]5  \path (0,0) rectangle (142,56);6  \tikzset{coord/.style={draw=maActeur, fill=maActeur, line width=.9pt, rounded corners=.8pt, minimum size=3.6mm, inner sep=0pt},7           exec/.style={draw=maActeur, fill=maPanneau, line width=.9pt, rounded corners=.8pt, minimum size=3.6mm, inner sep=0pt},8           lien/.style={draw=maActeur, line width=.9pt, -{Stealth[length=3.6pt,width=3.2pt]}, shorten >=1pt, shorten <=1pt},9           lien2/.style={draw=maActeur, line width=.9pt, shorten >=1pt, shorten <=1pt}}10  \foreach \col/\row/\titre/\force/\limite in {11      0/1/{Superviseur–travailleurs}/{fan-out simple, un responsable}/{goulot : le superviseur},12      1/1/{Chaîne (pipeline)}/{étages spécialisés, flux clair}/{latence : somme des étages},13      2/1/{Hiérarchique}/{passe à l'échelle par niveaux}/{profondeur : contexte perdu},14      0/0/{Pair-à-pair}/{pas de point central}/{liens : $n(n-1)/2$},15      1/0/{Tableau noir}/{état commun, agents découplés}/{conflits d'écriture},16      2/0/{Graphe d'états}/{transitions explicites}/{cycles à borner}}{17    \begin{scope}[shift={(\col*48.2,\row*28.6)}]18      \draw[atlas region] (0,0) rectangle (45.6,27.2);19      \node[atlas heading, anchor=north west] at (1.4,26.6) {\titre};20      \pic[maValide, scale=.3] at (3.2,5.7) {atlas check};21      \node[atlas note, anchor=west] at (5.4,5.7) {\force};22      \pic[maRisque, scale=.3] at (3.2,2.2) {atlas warn};23      \node[atlas note, anchor=west] at (5.4,2.2) {\limite};24    \end{scope}}25  % 1. Superviseur–travailleurs (étoile)26  \begin{scope}[shift={(0,28.6)}]27    \node[coord] (s) at (10,15) {};28    \foreach \i/\y in {1/19.5,2/15,3/10.5}{\node[exec] (w\i) at (33,\y) {}; \draw[lien] (s) -- (w\i);}29  \end{scope}30  % 2. Chaîne31  \begin{scope}[shift={(48.2,28.6)}]32    \foreach \i/\x in {1/8,2/18,3/28,4/38}{\node[exec] (p\i) at (\x,15) {};}33    \foreach \a/\b in {1/2,2/3,3/4}{\draw[lien] (p\a) -- (p\b);}34  \end{scope}35  % 3. Hiérarchique36  \begin{scope}[shift={(96.4,28.6)}]37    \node[coord] (h) at (7,15) {};38    \node[coord] (h1) at (21,19.4) {}; \node[coord] (h2) at (21,11) {};39    \draw[lien] (h) -- (h1); \draw[lien] (h) -- (h2);40    \foreach \i/\y/\p in {1/21.6/h1,2/17.2/h1,3/13.2/h2,4/8.8/h2}{\node[exec] (x\i) at (37,\y) {}; \draw[lien] (\p) -- (x\i);}41  \end{scope}42  % 4. Pair-à-pair (graphe complet à quatre)43  \begin{scope}[shift={(0,0)}]44    \foreach \i/\x/\y in {1/15/18.8,2/31/18.8,3/31/9.6,4/15/9.6}{\node[exec] (q\i) at (\x,\y) {};}45    \foreach \a/\b in {1/2,2/3,3/4,4/1,1/3,2/4}{\draw[lien2] (q\a) -- (q\b);}46  \end{scope}47  % 5. Tableau noir48  \begin{scope}[shift={(48.2,0)}]49    \pic[maTexte, scale=1.05] at (23,14.8) {atlas db};50    \node[minimum width=9mm, minimum height=9mm, inner sep=0pt] (bb) at (23,14.8) {};51    \foreach \i/\x/\y in {1/8/19.5,2/8/10.5,3/38/19.5,4/38/10.5}{\node[exec] (b\i) at (\x,\y) {}; \draw[lien2, {Stealth[length=3.6pt,width=3.2pt]}-{Stealth[length=3.6pt,width=3.2pt]}] (b\i) -- (bb);}52  \end{scope}53  % 6. Graphe d'états54  \begin{scope}[shift={(96.4,0)}]55    \foreach \i/\x/\y in {1/8/15,2/20/15,3/32/15}{\node[exec] (g\i) at (\x,\y) {};}56    \node[ma etat terminal, minimum height=3.4mm, minimum width=3.4mm, inner sep=0pt] (g4) at (41.4,15) {};57    \draw[lien] (g1) -- (g2); \draw[lien] (g2) -- (g3); \draw[lien] (g3) -- (g4);58    \draw[lien, draw=maDecision] (g3.north) .. controls (30,22.4) and (22,22.4) .. (g2.north);59    \node[atlas note, anchor=north, text=maDecision] at (26,13.2) {si refus};60  \end{scope}61\end{tikzpicture}62
Files main
Menu

Theme