SPB Git

Repository Public MIT Research preview

S02-F04-budget-contexte.tex 2.6 KB 37 lines latex

1% S02-F04 — Le budget de jetons d'un appel : l'entrée ET la sortie partagent la même fenêtre de contexte.2% Idée : une bande bornée ; ce qui dépasse la limite ne tient pas. Scénario FICTIF, tailles calculées.3% DONNÉES : S02-F04-donnees.tex, généré par demos/src/atlas_s02/exporter_donnees_figure.py.4\input{S02-F04-donnees.tex}5\begin{tikzpicture}[x=1mm, y=1mm]6  % Cote de la fenêtre7  \draw[atlasMuted, line width=.6pt, {Bar[width=2.4mm]}-{Bar[width=2.4mm]}] (4,48) -- (104,48);8  \node[atlas note, fill=atlasBg, inner xsep=4pt] at (54,48) {fenêtre de contexte fictive : \AtlasFigFenetre\ jetons};9  % ---------- Cas courant ----------10  \AtlasContextBand{c}{(4,31)}{100}{8.5}11  \AtlasBandSegment{c}{0}{\AtlasFigFracConsigne}{atlasFlow}{}12  \AtlasBandSegment{c}{\AtlasFigFracConsigne}{\AtlasFigFracDocument}{atlasFlow}{document : \AtlasFigDocument\ jetons}13  \AtlasBandSegment{c}{\AtlasFigFracDocument}{\AtlasFigFracReponse}{atlasValid}{}14  \node[atlas label, text=atlasMuted] at (81,35.25) {libre : \AtlasFigLibres\ jetons};15  \node[atlas heading, anchor=south west] at (4,40.3) {Cas courant};16  \node[atlas note, anchor=south west] at (27,40.5) {\AtlasFigTotal\ jetons, soit \AtlasFigPart\ \% de la fenêtre};17  \draw[atlasMuted, line width=.5pt] (5.5,31) -- (5.5,28.6);18  \node[atlas note, anchor=north west] at (4,28.8) {consigne : \AtlasFigConsigne};19  \draw[atlasMuted, line width=.5pt] (55.1,31) -- (55.1,28.6);20  \node[atlas note, anchor=north] at (55.1,28.8) {réponse réservée : \AtlasFigReponse};21  % ---------- Document long ----------22  \AtlasContextBand{l}{(4,6.5)}{100}{8.5}23  \AtlasBandSegment{l}{0}{\AtlasFigFracConsigne}{atlasFlow}{}24  \AtlasBandSegment{l}{\AtlasFigFracConsigne}{1}{atlasFlow}{document : \AtlasFigDocumentLong\ jetons}25  \AtlasBandSegment{l}{1}{\AtlasFigFracDocumentLong}{atlasHazard}{}26  \AtlasBandSegment{l}{\AtlasFigFracDocumentLong}{\AtlasFigFracTotalLong}{atlasHazard}{}27  \node[atlas heading, anchor=south west] at (4,15.8) {Document long};28  \node[atlas note, anchor=south west] at (31,16) {\AtlasFigTotalLong\ jetons demandés};29  \draw[atlasMuted, line width=.5pt] (122.6,6.5) -- (122.6,4.1);30  \node[atlas note, anchor=north] at (122.6,4.3) {réponse : \AtlasFigReponse};31  \pic[atlasHazard, scale=.34] at (109.5,18) {atlas warn};32  \node[atlas note, anchor=west, text=atlasHazard, font=\AtlasSizeTiny\bfseries] at (112,18) {dépassement : \AtlasFigDepassement\ jetons};33  % ---------- Limite ----------34  \draw[atlas boundary] (104,2) -- (104,44.5);35  \node[atlas note, anchor=west, text=atlasHazard, align=left] at (106,36.5) {limite de la fenêtre :\\ rien ne tient au-delà};36\end{tikzpicture}37
Files main
Menu

Theme