defense/src/fig/context/par.tex

32 lines
966 B
TeX

\begin{tikzpicture}
\input{src/tikz/orchestration}
\begin{scope}[overlay]
\node(origin){};
\node at (origin) (t-1) {};
\end{scope}
\begin{scope}[node distance=4mm and 12mm]
\node[orch/task=black,right=of t-1] (t0) {m\textsubscript{0}};
\node[orch/task=black,right=of t0] (t1) {m\textsubscript{1}};
\node[orch/task=white,draw=none,fill=none,node distance=6mm,right=of t1] (t2) {\dots};
\node[orch/task=black,node distance=6mm,right=of t2] (t3) {m\textsubscript{N-2}};
\node[orch/task=black,right=of t3] (t4) {m\textsubscript{N-1}};
\foreach \i/\t in {0/0,1/1,3/N-2,4/N-1} {
\node[above=of t\i] (label\i) {\en{thread}~\t};
\node[below=of t\i] (endthread\i) {};
}
\end{scope}
\foreach \i in {0,1,3,4} {
\draw[-] (label\i) -- (t\i);
\draw[-] (t\i) -- (endthread\i);
}
\begin{scope}[on background layer]
\node[common/drawfill=green!40!black,dashed,rectangle,rounded corners,fit=(t0)(t4)](par){};
\end{scope}
\end{tikzpicture}