SPB Git

Repository Public MIT Research preview

S05-F01-budget-debordement-compaction.tex 4.0 KB 50 lines latex

1% S05-F01 — Figure phare 7 : allocation de la fenêtre de contexte, débordement et compaction.2% Idée : la fenêtre est un budget fixe. Trois états du MÊME appel, à la même échelle : le budget prévu3% remplit la fenêtre ; sans gestion, l'historique et un courriel reçu font déborder ; après compaction de4% l'historique et tri des documents, tout tient de nouveau, avec de la marge. Scénario FICTIF.5% DONNÉES : S05-F01-donnees.tex, généré par demos/src/atlas_s05/exporter_donnees_figure.py.6\input{S05-F01-donnees.tex}7\begin{tikzpicture}[x=1mm, y=1mm]8  % ---------- Budget prévu ----------9  \AtlasContextBand{p}{(27,36.5)}{92}{7.5}10  \AtlasBandSegment{p}{0}{\AtlasFigPrevuFinConsignes}{atlasFlow}{\AtlasFigPrevuConsignes}11  \AtlasBandSegment{p}{\AtlasFigPrevuFinConsignes}{\AtlasFigPrevuFinDocuments}{atlasFlow}{documents : \AtlasFigPrevuDocuments}12  \AtlasBandSegment{p}{\AtlasFigPrevuFinDocuments}{\AtlasFigPrevuFinHistorique}{atlasFlow}{historique : \AtlasFigPrevuHistorique}13  \AtlasBandSegment{p}{\AtlasFigPrevuFinHistorique}{\AtlasFigPrevuFinQuestion}{atlasFlow}{}14  \AtlasBandSegment{p}{\AtlasFigPrevuFinQuestion}{1}{atlasValid}{\AtlasFigPrevuReponse}15  \node[atlas heading, anchor=west] at (0,41.8) {Budget prévu};16  \node[atlas note, anchor=west] at (0,37.9) {\AtlasFigPrevuTotal\ sur \AtlasFigBudgetFenetre};17  % Noms des postes, une seule fois, au-dessus de la première bande18  \node[atlas note, anchor=south] at (33.7,44.6) {consignes};19  \draw[atlasMuted, line width=.5pt] (103.2,44) -- (103.2,48.4);20  \node[atlas note, anchor=south east] at (104.4,48.2) {question : \AtlasFigPrevuQuestion};21  \node[atlas note, anchor=south] at (112.1,44.6) {réponse};22  % ---------- Sans gestion ----------23  \AtlasContextBand{s}{(27,20.5)}{92}{7.5}24  \AtlasBandSegment{s}{0}{\AtlasFigSansFinConsignes}{atlasFlow}{\AtlasFigSansConsignes}25  \AtlasBandSegment{s}{\AtlasFigSansFinConsignes}{\AtlasFigSansFinDocuments}{atlasFlow}{documents : \AtlasFigSansDocuments}26  \AtlasBandSegment{s}{\AtlasFigSansFinDocuments}{1}{atlasFlow}{historique : \AtlasFigSansHistorique}27  \AtlasBandSegment{s}{1}{\AtlasFigSansFinHistorique}{atlasHazard}{}28  \AtlasBandSegment{s}{\AtlasFigSansFinHistorique}{\AtlasFigSansFinQuestion}{atlasHazard}{}29  \AtlasBandSegment{s}{\AtlasFigSansFinQuestion}{\AtlasFigSansFinReponse}{atlasHazard}{\AtlasFigSansReponse}30  \node[atlas heading, anchor=west] at (0,25.8) {Sans gestion};31  \node[atlas note, anchor=west] at (0,21.9) {\AtlasFigSansTotal\ demandés};32  \pic[atlasHazard, scale=.3] at (84.6,17) {atlas warn};33  \node[atlas note, anchor=west, text=atlasHazard, font=\AtlasSizeTiny\bfseries] at (86.8,17) {dépassement : \AtlasFigSansDepassement\ jetons};34  \node[atlas note, anchor=north west] at (27,19.6) {12\textsuperscript{e} message : tout est envoyé, sans tri};35  % ---------- Après gestion ----------36  \AtlasContextBand{a}{(27,3.5)}{92}{7.5}37  \AtlasBandSegment{a}{0}{\AtlasFigApresFinConsignes}{atlasFlow}{\AtlasFigApresConsignes}38  \AtlasBandSegment{a}{\AtlasFigApresFinConsignes}{\AtlasFigApresFinDocuments}{atlasFlow}{\AtlasFigApresDocuments}39  \AtlasBandSegment{a}{\AtlasFigApresFinDocuments}{\AtlasFigApresFinHistorique}{atlasUncertain}{compacté : \AtlasFigApresHistorique}40  \AtlasBandSegment{a}{\AtlasFigApresFinHistorique}{\AtlasFigApresFinQuestion}{atlasFlow}{}41  \AtlasBandSegment{a}{\AtlasFigApresFinQuestion}{\AtlasFigApresFinReponse}{atlasValid}{\AtlasFigApresReponse}42  \node[atlas label, text=atlasMuted] at (106,7.25) {libre : \AtlasFigApresLibre};43  \node[atlas heading, anchor=west] at (0,8.8) {Après gestion};44  \node[atlas note, anchor=west] at (0,4.9) {\AtlasFigApresTotal\ sur \AtlasFigBudgetFenetre};45  \node[atlas note, anchor=north west] at (27,2.6) {un seul article du règlement ; historique résumé, à relire avant de s'y fier};46  % ---------- Limite ----------47  \draw[atlas boundary] (119,-2.5) -- (119,49.5);48  \node[atlas note, anchor=west, text=atlasHazard, align=left] at (121,39.5) {limite (fictive) :\\ \AtlasFigBudgetFenetre\ jetons};49\end{tikzpicture}50
Files main
Menu

Theme