SPB Git

Repository Public MIT Research preview

CE01-F07-budget-de-jetons.tex 3.2 KB 42 lines latex

1% CE01-F07 — Décomposition d'un budget de jetons : ce qui est demandé, ce que la fenêtre permet, ce qui est alloué.2% Question : comment répartir une fenêtre finie entre l'entrée, la réserve de sortie et la marge de sécurité ?3% DONNÉES : CE01-F07-donnees.tex (experiences.budget_exemple ; la marge vient de l'erreur d'estimation mesurée).4% Idée : la fenêtre est une contrainte d'égalité ; la réserve de sortie et la marge se retirent AVANT de servir l'entrée.5\input{CE01-F07-donnees.tex}%6\newcommand{\CEFseptBande}[2]{% #1 = ordonnée du bas, #2 = liste n/nom/couleur7  \def\x{0}8  \foreach \n/\nom/\coul in {#2}{9    \pgfmathsetmacro{\xb}{\x + \n*\ech}10    \fill[\coul, fill opacity=.26] (\x, #1) rectangle (\xb, #1+9.4);11    \draw[\coul, line width=.7pt] (\x, #1) rectangle (\xb, #1+9.4);12    \pgfmathparse{\n*\ech > 5 ? 1 : 0}13    \ifnum\pgfmathresult=1 \node[atlas label, font=\AtlasSizeTiny, align=center, inner sep=0pt] at ({(\x+\xb)/2}, #1+4.7) {\nom\\\textbf{\n}};\fi14    \xdef\x{\xb}15  }}16\begin{tikzpicture}[x=1mm, y=1mm]17  \pgfmathsetmacro{\ech}{142/\CEFseptDemandeTotale}18  \pgfmathsetmacro{\xw}{\CEFseptFenetre*\ech}19  \pgfmathsetmacro{\xe}{(\CEFseptFenetre-\CEFseptMarge-\CEFseptReserve)*\ech}20  % ---- bande 1 : les demandes ----21  \node[atlas heading, anchor=south west] at (0, 45.6) {Demandes : \CEFseptTexteTotal\ jetons};22  \CEFseptBande{35.4}{\CEFseptDemandeSysteme/syst./atlasFlow, \CEFseptDemandeObjectif/obj./atlasFlow,23      \CEFseptDemandeOutils/outils/atlasMuted, \CEFseptDemandeDocuments/documents/atlasValid,24      \CEFseptDemandeHistorique/historique/atlasMuted, \CEFseptMarge/marge/atlasUncertain, \CEFseptReserve/sortie/atlasHazard}25  \draw[atlas boundary] (\xw, 32.6) -- (\xw, 50);26  \node[atlas note, anchor=south east, text=atlasHazard] at (\xw-1, 45.6) {\textbf{fenêtre W = \CEFseptTexteFenetre}};27  \node[atlas note, anchor=south west, text=atlasHazard] at (\xw+1, 45.6) {hors fenêtre};28  \node[atlas note, anchor=north west] at (0, 34.6) {segment étroit après « syst. » : objectif, \CEFseptDemandeObjectif\ jetons.};29  % ---- bande 2 : l'allocation ----30  \node[atlas heading, anchor=south west] at (0, 22.4) {Allocation : exactement W};31  \CEFseptBande{12.2}{\CEFseptAlloueSysteme/syst./atlasFlow, \CEFseptAlloueObjectif/obj./atlasFlow,32      \CEFseptAlloueOutils/outils/atlasMuted, \CEFseptAlloueDocuments/documents/atlasValid,33      \CEFseptAlloueHistorique/hist./atlasMuted, \CEFseptMarge/marge/atlasUncertain, \CEFseptReserve/sortie/atlasHazard}34  \draw[atlas boundary] (\xw, 9.4) -- (\xw, 25.6);35  \node[atlas note, anchor=west, align=left] at (\xw+2.5, 16.9) {historique non servi :\\\textbf{\CEFseptTexteNonServi\ jetons}\\à compacter ou à écarter};36  \draw[ce cote, decoration={mirror}] (0, 11.2) -- (\xe-.4, 11.2);37  \node[atlas note, anchor=north west] at (0, 7.4) {entrée, servie par priorité};38  \node[atlas note, anchor=south west] at (0, -.6) {priorités : 1 système et objectif · 2 outils · 3 documents · 4 historique};39  \draw[ce cote, decoration={mirror}] (\xe+.4, 11.2) -- node[atlas note, below=2.6mm] {retirés d'abord} (\xw, 11.2);40  \node[ce nature, anchor=south east] at (142, 0) {données synthétiques · jetons estimés};41\end{tikzpicture}42
Files main
Menu

Theme