Repository Public MIT Research preview
1% S11-F03 — Un tube : des processus reliés, des données qui circulent, des codes de sortie.2% Idée : « | » relie la sortie d'un processus à l'entrée du suivant ; le code du tube est celui de3% la DERNIÈRE commande, si bien qu'un échec en amont peut passer inaperçu (rangée du bas).4% Tous les nombres viennent du simulateur (S11-F03-donnees.tex).5\input{S11-F03-donnees.tex}%6\begin{tikzpicture}[x=1mm, y=1mm]7 \tikzset{s11 cmd/.style={atlas block flow, font=\ttfamily\AtlasSizeTiny, minimum height=9mm}}8 % --- Rangée du haut : le tube réussi ---9 \node[atlas heading, anchor=west] at (0,49.5) {Un tube qui réussit};10 \foreach \i in {0,1,2}{ \pic[atlasMuted, scale=.36] at (3+4.6*\i,38) {atlas doc}; }11 \node[atlas note, anchor=north west] at (0,33.6) {\AtlasFigTubeFichiers\ fichiers};12 \node[s11 cmd, text width=23mm] (c1) at (34,38) {cat notes/*.txt};13 \node[s11 cmd, text width=19mm] (g1) at (77,38) {grep retard};14 \node[atlas store, font=\ttfamily\AtlasSizeTiny, text width=17mm, minimum height=10mm] (f1) at (119,38) {retards.txt};15 \draw[atlas arrow] (16,38) -- (c1.west);16 \draw[atlas arrow] (c1.east) -- node[atlas note, above] {\AtlasFigTubeLignesCat\ lignes} node[atlas label, below, font=\ttfamily\AtlasSizeLabel\bfseries, text=atlasFlow] {|} (g1.west);17 \draw[atlas arrow] (g1.east) -- node[atlas note, above] {\AtlasFigTubeLignesGrep\ lignes} node[atlas label, below, font=\ttfamily\AtlasSizeLabel\bfseries, text=atlasFlow] {>} (f1.west);18 \node[atlas note, text=atlasValid, anchor=north] at (c1.south) {code \AtlasFigTubeCodeCat};19 \node[atlas note, text=atlasValid, anchor=north] at (g1.south) {code \AtlasFigTubeCodeGrep};20 \node[atlas note, anchor=north] at (f1.south) {\AtlasFigTubeLignesEcrites\ lignes écrites};21 \pic[atlasValid, scale=.4] at (135.5,40) {atlas check};22 \node[atlas note, text=atlasValid, align=center] at (135.5,34.8) {tube :\\ code \AtlasFigTubeCode};23 \draw[atlasRule, line width=.6pt] (0,25.5) -- (142,25.5);24 % --- Rangée du bas : l'échec masqué ---25 \node[atlas heading, anchor=west] at (0,21.5) {Un échec masqué};26 \pic[atlasHazard, scale=.36] at (3,10.5) {atlas doc};27 \pic[atlasMuted, scale=.36] at (7.6,10.5) {atlas doc};28 \node[atlas note, text=atlasHazard, anchor=north west] at (0,6.1) {1 introuvable};29 \node[s11 cmd, draw=atlasHazard, text width=23mm] (c2) at (34,10.5) {cat jeudi.txt lundi.txt};30 \node[s11 cmd, text width=19mm] (g2) at (77,10.5) {grep -c retard};31 \node[atlas token] (o2) at (114,10.5) {\AtlasFigMasqueSortie};32 \draw[atlas arrow] (16,10.5) -- (c2.west);33 \draw[atlas arrow] (c2.east) -- node[atlas note, above] {\AtlasFigMasqueLignesCat\ lignes} node[atlas label, below, font=\ttfamily\AtlasSizeLabel\bfseries, text=atlasFlow] {|} (g2.west);34 \draw[atlas arrow] (g2.east) -- node[atlas note, above] {affiche} (o2.west);35 \node[atlas note, text=atlasHazard, anchor=north] at (c2.south) {code \AtlasFigMasqueCodeCat\ : échec};36 \node[atlas note, text=atlasValid, anchor=north] at (g2.south) {code \AtlasFigMasqueCodeGrep};37 \pic[atlasUncertain, scale=.4] at (135.5,13.2) {atlas warn};38 \node[atlas note, text=atlasUncertain, align=center] at (135.5,7.2) {tube :\\ code \AtlasFigMasqueCode};39 \node[atlas note, anchor=east] at (142,21.5) {le code d'un tube est celui de sa dernière commande};40\end{tikzpicture}41