Repository Public MIT Research preview
1% MA01-F02 — Graphe superviseur–travailleurs avec le contrat de la tâche t4 annoté.2% Idée : une arête de délégation porte un CONTRAT à l'aller et un résultat VALIDÉ au retour ; le contrat dit3% tout ce qui borne le travail (entrée, sortie, permission, budget, délai, tentatives). Valeurs : laboratoire.4\begin{tikzpicture}[x=1mm, y=1mm]5 \path (0,0) rectangle (142,54);6 \MaSilhouette{(4.6,36)}7 \node[atlas note, anchor=north west] at (0,29) {demandeur};8 \node[ma agent, text width=22mm, minimum height=24.5mm] (sup) at (37,36) {\textbf{Superviseur}\\[.6mm] {\AtlasSizeTiny\color{maDiscret}1 planifie\\ 2 confie\\ 3 valide\\ 4 assemble}};9 \draw[atlas arrow] (9,38) -- node[atlas note, above] {demande} (sup.west |- 0,38);10 \draw[atlas arrow valid] (sup.west |- 0,34) -- node[atlas note, below] {rapport} (9,34);11 \foreach \k/\y in {1/46,2/36,3/26}{12 \node[ma sous agent, text width=22mm] (w\k) at (124,\y) {Travailleur \k};13 \draw[atlas arrow] (sup.east |- 0,\y+1.4) -- (w\k.west |- 0,\y+1.4);14 \draw[atlas arrow valid] (w\k.west |- 0,\y-1.4) -- (sup.east |- 0,\y-1.4);}15 \node[atlas note, anchor=south] at (84,47.6) {contrat};16 \node[atlas note, anchor=south] at (84,37.6) {contrat};17 \node[atlas note, anchor=south, text=maTexte] at (97,27.6) {\textbf{contrat de t4}};18 \node[ma decision, inner sep=.4pt] (v) at (60,24.6) {valide ?};19 \node[atlas note, anchor=west, text=maTexte] at (67.4,22.4) {résultat};20 % Le contrat, déplié21 \node[ma contrat, text width=104mm, anchor=south west] (c) at (33.5,1)22 {\textbf{Contrat de la tâche t4}\enspace compétence : \texttt{traiter}\enspace·\enspace entrée : \texttt{\{fiche\}}\\23 sortie : \texttt{\{valeur, facteur, resultat\}}\enspace·\enspace permission : \texttt{dossier:lire}\\24 budget : 4 000 jetons\enspace·\enspace délai : 60 s\enspace·\enspace tentatives : 1\enspace·\enspace idempotente : oui};25 \draw[maDiscret, line width=.6pt, dash pattern=on 1.6pt off 1.6pt] (97,27.4) -- (97,15.6);26 \node[atlas note, anchor=north west, align=left, text width=30mm] at (0,14.6) {Un résultat non conforme au schéma de sortie n'entre pas dans le rapport.};27 \node[atlas tag=maActeur, anchor=north west] at (0,54) {UNE ARÊTE DE DÉLÉGATION = UN CONTRAT};28\end{tikzpicture}29