-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathstreams-tables-classic-batch.tex
114 lines (99 loc) · 2.51 KB
/
streams-tables-classic-batch.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
% convert -density 600 -delay 10 -loop 0 classic-batch.pdf classic-batch-pdf.gif
% or
% convert -density 600 classic-batch.pdf classic-batch-%02d.png
% convert -delay 100 -loop 0 classic-batch*.png classic-batch.gif
\def \StreamsTables{1}
\input{diagrams}
\def \FastRender{0}
\def \ShowWatermarks{0}
\def \DiagramName{Fun}
\def \DebugStreamTable{1}
\def \DrawTriggerLineBottom{1}
\newcommand{\DrawTable}[2][\ostate] {
\DrawTableCell[#1]{\stX}{\stXW}{#2}
}
\newcommand{\DrawOutputStream} {
\DrawOutput{\stX}{\stX + \stW}{6 + \stInputY}{6.5 + \stInputY}{48}
}
\newcommand{\BatchDiagram}[3] {
\TriggersMulti{
\def \stYoff{#1}
\def \oyBase{6.5}
\def \DebugStreamTable{0}
\def \stX{0}
\def \stW{9}
\def \stY{4.5}
\def \stH{2}
\def \stYMinBase{3}
\def \stYBoundBoost{0}
\def \stYBoundBoostDown{0}
\def \stYAxisLabel{0}
\def \stLabel{Input bytes}
\StreamInline{
\DrawBytesA
\DrawEndOfStream{4.333}
}
\def \DebugStreamTable{0}
\def \stX{0}
\def \stW{9}
\def \stY{2.5}
\def \stH{2}
\def \stYMinBase{1}
\def \stYBoundBoost{0}
\def \stYBoundBoostDown{0}
\def \stYAxisLabel{0}
\def \stLabel{User scores}
\StreamInline{
\DrawInputsA{c_datum_back}{c_datum_text}{c_datum_border}
\DrawEndOfStream{4.333}
}
\def \stY{4.5}
\DrawDivider{4.5}{1}{\stMaxMargin}
\node[s_margin_op] at (\stX - \stMargin, \stY) {PARSE};
\def \DebugStreamTable{0}
\def \stX{0}
\def \stW{9}
\def \stY{2}
\def \stH{0.5}
\def \stYBoundBoost{0}
\def \stLabel{SUM}
\TableInline{
\DrawInputsA{c_ghost}{c_ghost_text}{c_ghost_border}
\def \diOffset{4}
\DrawIn{\stYoff}{0.333}{0.555}{\DrawTable{5}}
\DrawIn{\stYoff}{0.666}{1.111}{\DrawTable{12}}
\DrawIn{\stYoff}{1.222}{1.555}{\DrawTable{15}}
\DrawIn{\stYoff}{1.666}{2.000}{\DrawTable{19}}
\DrawIn{\stYoff}{2.111}{2.222}{\DrawTable{27}}
\DrawIn{\stYoff}{2.333}{3.222}{\DrawTable{30}}
\DrawIn{\stYoff}{3.333}{3.555}{\DrawTable{39}}
\DrawIn{\stYoff}{3.666}{3.888}{\DrawTable{47}}
\DrawIn{\stYoff}{4.000}{8.000}{\DrawTable{48}}
}
\def \DebugStreamTable{0}
\def \stX{0}
\def \stW{9}
\def \stY{0}
\def \stH{2}
\def \stYMinBase{-1.5}
\def \stYBoundBoost{0.5}
\def \stYBoundBoostDown{0}
\def \stYAxisLabel{0}
\def \stLabel{Team scores}
\StreamInline{
\DrawEndOfStream{4.333}
\def \diOffset{4}
\DrawIn{\stYoff}{4.333}{8.0}{\DrawOutput{0}{\stW}{3.833}{4.333}{48}}
}
\DrawXAxis{6.5}{1}
\DrawXAxis{0}{0}
}
}
\newcommand{\Frame}[1] {
\BatchDiagram{#1}{
}{}
}
\newcommand{\FastFrames}{0,8,23,66,96}
\newcommand{\AllFrames}{0,1,...,104}
\RenderFrames
\end{document}