SPB Git

Repository Public MIT Research preview

MA02-F04-machine-a-etats.tex 2.3 KB 27 lines latex

1% MA02-F04 — Machine à états d'un travail : six états, dont trois terminaux, et huit transitions.2% Idée : par rapport à la séance 01, deux choses changent. « En reprise » existe : entre deux tentatives, le travail3% attend. Et l'annulation peut frapper À TOUT MOMENT, y compris en cours d'exécution. Tout travail finit dans un4% des trois états terminaux. Les transitions sont celles de travaux.py (TRANSITIONS) ; un test compte les huit.5\begin{tikzpicture}[x=1mm, y=1mm]6  \path (0,0) rectangle (142,56);7  \node[ma etat] (at) at (23,33) {en attente};8  \node[ma etat actif, line width=1.4pt] (co) at (68,33) {en cours};9  \node[ma etat, draw=maDecision] (re) at (68,51.4) {en reprise};10  \node[ma etat terminal] (ok) at (127,33) {réussi};11  \node[ma etat terminal=maRisque] (ko) at (126,11) {échoué};12  \node[ma etat terminal=maRisque] (an) at (23,11) {annulé};13  \fill[maTexte] (8.6,33) circle[radius=.9mm];14  \draw[ma transition] (9.5,33) -- (at);15  \draw[atlas arrow] (at) -- node[atlas note, above] {un agent le retire} node[atlas note, below] {de la file} (co);16  \draw[atlas arrow valid] (co) -- node[atlas note, above, text=maTexte] {réponse reçue} node[atlas note, below] {dans le délai} (ok);17  \draw[atlas arrow, draw=maDecision] ([xshift=-4mm]co.north) -- node[atlas note, left, align=right, text=maDecision] {échec, il reste\\ des tentatives} ([xshift=-4mm]re.south);18  \draw[atlas arrow, draw=maDecision] ([xshift=4mm]re.south) -- node[atlas note, right, align=left, text=maDecision] {attente écoulée\\ (exponentielle, jitter)} ([xshift=4mm]co.north);19  \draw[atlas arrow hazard] (co.south east) -- (ko.north west);20  \node[atlas note, anchor=north west, align=left] at (63,22.4) {plafond de tentatives,\\ ou doute sans clé};21  \draw[atlas arrow hazard] (at.south) -- (an.north);22  \draw[atlas arrow hazard] (co.south west) -- (an.north east);23  \draw[atlas arrow hazard] (re.west) .. controls (42,51.4) and (3.4,54) .. (3.4,33) .. controls (3.4,22) and (5,12) .. (an.west);24  \node[atlas note, anchor=west, align=left, text=maRisque] at (36,4.4) {annulation, depuis les trois états non terminaux :\\ échéance, demande, dépendance non réussie, budget};25  \node[atlas tag=maValide, anchor=north east] at (141,55.6) {DOUBLE CONTOUR = ÉTAT TERMINAL};26\end{tikzpicture}27
Files main
Menu

Theme