SPB Git

Repository Public MIT Research preview

CE03-F02-allocation-par-tour.tex 3.6 KB 52 lines latex

1% CE03-F02 — Allocation dynamique du contexte par tour (figure obligatoire n° 22 du contrat).2% Question : comment la même fenêtre se répartit-elle quand l'intention du tour change, et que devient le plan une fois3% les jetons comptés exactement ?4% DONNÉES : CE03-F02-donnees.tex — trois tours d'une même session du Context Engine (graine 0, fenêtre de 650 jetons) ;5% comptes exacts du découpeur du moteur. Corpus synthétique ; aucun modèle n'est appelé pour cette figure.6% Idée : deux barres par tour. En haut le PLAN, en jetons estimés : postes, marge, réserve ; leur somme est la fenêtre.7% En bas ce qui a été ÉCRIT, en jetons exacts : il doit tenir sous le plafond (fenêtre moins réserve).8\input{CE03-F02-donnees.tex}%9\newcommand{\CEFdeuxCouleur}[1]{%10  \ifcsname CEFdeux@#1\endcsname\csname CEFdeux@#1\endcsname\else atlasMuted\fi}11\expandafter\def\csname CEFdeux@systeme\endcsname{atlasMuted}%12\expandafter\def\csname CEFdeux@question\endcsname{atlasMuted}%13\expandafter\def\csname CEFdeux@memoire\endcsname{atlasUncertain}%14\expandafter\def\csname CEFdeux@historique\endcsname{atlasFlow}%15\expandafter\def\csname CEFdeux@documents\endcsname{atlasValid}%16\expandafter\def\csname CEFdeux@marge\endcsname{atlasHazard}%17\expandafter\def\csname CEFdeux@reserve\endcsname{atlasRule}%18% \CEFdeuxBarre{<y bas>}{<hauteur>}{<liste x0/x1/poste/jetons>} : une barre empilée ; le nombre est écrit si le segment est assez large.19\newcommand{\CEFdeuxBarre}[3]{%20  \foreach \a/\b/\poste/\n in #3 {21    \edef\couleur{\CEFdeuxCouleur{\poste}}22    \fill[\couleur, fill opacity=.30] (30+\a, #1) rectangle (30+\b, #1+#2);23    \draw[\couleur, line width=.7pt] (30+\a, #1) rectangle (30+\b, #1+#2);24    \pgfmathparse{(\b-\a) > 5.4 ? 1 : 0}25    \ifnum\pgfmathresult=1 \node[atlas label, font=\AtlasTabularFont\AtlasSizeTiny, inner sep=0pt] at ({30+(\a+\b)/2}, {#1+#2/2}) {\n};\fi26  }}27\begin{tikzpicture}[x=1mm, y=1mm]28  \foreach \y/\titre in {35/\CEFdeuxIntentionUn, 20.2/\CEFdeuxIntentionDeux, 5.4/\CEFdeuxIntentionTrois}{29    \node[atlas heading, anchor=west] at (0, \y+6.6) {\titre};30    \node[atlas note, anchor=west] at (0, \y+3) {plan, estimé};31    \node[atlas note, anchor=west] at (0, \y-2) {écrit, exact};32  }33  \CEFdeuxBarre{35.8}{4.4}{\CEFdeuxAlloueUn}\CEFdeuxBarre{30.8}{4.4}{\CEFdeuxExactUn}34  \CEFdeuxBarre{21}{4.4}{\CEFdeuxAlloueDeux}\CEFdeuxBarre{16}{4.4}{\CEFdeuxExactDeux}35  \CEFdeuxBarre{6.2}{4.4}{\CEFdeuxAlloueTrois}\CEFdeuxBarre{1.2}{4.4}{\CEFdeuxExactTrois}36  % plafond d'entrée : fenêtre moins réserve de sortie37  \draw[atlas boundary] (30+\CEFdeuxPlafond, .2) -- (30+\CEFdeuxPlafond, 44.6);38  \node[atlas note, anchor=south east, text=atlasHazard] at (30+\CEFdeuxPlafond+10, 45) {plafond d'entrée : \CEFdeuxPlafondJetons\ jetons exacts};39  \node[atlas note, anchor=south west] at (30, 45) {fenêtre de \CEFdeuxFenetre\ jetons = postes + marge + réserve};40  \foreach \y/\rang in {30.8/\CEFdeuxTotalUn, 16/\CEFdeuxTotalDeux, 1.2/\CEFdeuxTotalTrois}{41    \node[atlas note, anchor=west, text=atlasFg] at (30+\CEFdeuxPlafond+1.6, \y+2.2) {total exact : \textbf{\rang}};}42  % légende : un mot par couleur43  \foreach \x/\poste/\nom in {30/systeme/{consignes, question}, 61/memoire/mémoire, 79/historique/historique, 99/documents/documents,44      119/marge/marge, 131.5/reserve/réserve}{45    \edef\couleur{\CEFdeuxCouleur{\poste}}46    \fill[\couleur, fill opacity=.30] (\x, -5) rectangle (\x+2.6, -2.4);47    \draw[\couleur, line width=.7pt] (\x, -5) rectangle (\x+2.6, -2.4);48    \node[atlas note, anchor=west] at (\x+3.2, -3.7) {\nom};49  }50  \node[ce nature, anchor=west] at (0, -3.7) {calcul exact};51\end{tikzpicture}52
Files main
Menu

Theme