mirror of
https://sharelatex.tu-darmstadt.de/git/681e0e7a3a9c7c9c6b8bb298
synced 2025-12-07 13:18:00 +00:00
Update on Overleaf.
This commit is contained in:
@@ -308,88 +308,17 @@ The \gls{smdpp} client is primarily used by the \gls{isdr} application to execut
|
||||
% afterwards: clear the recorder, reset the link, reset card -> continue with next scenario
|
||||
|
||||
|
||||
\begin{tikzpicture}[
|
||||
node distance=1cm and 1.1cm,
|
||||
every node/.style={align=center},
|
||||
decision/.style={diamond, aspect=2, text centered, draw=black, fill=orange!20},
|
||||
block/.style={rectangle, thick, minimum width=2.5cm, minimum height=1.2cm, draw=black, fill=gray!10},
|
||||
startstop/.style={rectangle, rounded corners, minimum width=2.5cm, minimum height=1cm, text centered, draw=black, fill=blue!10},
|
||||
line/.style={draw, thick, -{Latex[length=3mm]}},
|
||||
]
|
||||
|
||||
\node[startstop] (A) {Start};
|
||||
\node[decision, below=of A] (B) {Current Node has\\ not tried mutations?};
|
||||
\node[block, right=of B] (C) {Create new Node as\\ child and make it current};
|
||||
\node[startstop, above=of C] (n1) {Return a not\\ tried mutation type};
|
||||
\node[block, below=of B] (D) {Iterate over children};
|
||||
\node[decision, below=of D] (n2) {Child function\\ execution failed?};
|
||||
\node[decision, right=of n2] (n3) {Child has not\\ tried mutations?};
|
||||
\node[startstop, above=of n3] (n4) {Make child current and\\ return its mutation type};
|
||||
\node[decision, below=of n3] (n5) {Is mutation type\\ of child None?};
|
||||
\node[block, left=of n5] (n6) {Set NoneNode to child};
|
||||
|
||||
\path[line] (A) -- (B);
|
||||
\path[line] (B) -- node[above] {Yes} (C);
|
||||
\path[line] (C) -- (n1);
|
||||
\path[line] (B) -- node[left] {No} (D);
|
||||
\path[line] (D) -- (n2);
|
||||
\path[line] (n2) -- node[left] {Yes} (D);
|
||||
\path[line] (n2) -- node[above] {No} (n3);
|
||||
\path[line] (n3) -- node[right] {Yes} (n4);
|
||||
\path[line] (n3) -- (n5);
|
||||
\path[line] (n5) -- node[above] {Yes} (n6);
|
||||
|
||||
\end{tikzpicture}
|
||||
|
||||
\begin{tikzpicture}[
|
||||
node distance=1cm and 1.1cm,
|
||||
startstop/.style={rectangle, rounded corners, minimum width=2.5cm, minimum height=1cm, text centered, draw=black, fill=blue!10},
|
||||
process/.style={align=center, rectangle, minimum width=2.5cm, minimum height=1cm, text centered, draw=black, fill=gray!10},
|
||||
decision/.style={align=center, diamond, aspect=2, text centered, draw=black, fill=orange!20},
|
||||
arrow/.style={thick,->,>=Stealth}
|
||||
]
|
||||
|
||||
% Nodes
|
||||
\node (start) [startstop] {Start};
|
||||
\node (check1) [decision, below=of start] {Current node has\\ not tried mutations?};
|
||||
\node (addnode) [process, right=1.2cm of check1] {create a new node as child of current Node\\ and make it the current node};
|
||||
\node (return1) [startstop, above=of addnode] {return a not tried mutation type};
|
||||
|
||||
\node (loopstart) [process, below=of check1] {Iterate over children};
|
||||
\node (failcheck) [decision, below=of loopstart] {child function\\ execution failed?};
|
||||
\node (mutcheck) [decision, right=1.2cm of failcheck] {child has\\ not tried mutations?};
|
||||
\node (setcurrent) [process, above=of mutcheck] {set the child as current node};
|
||||
\node (return2) [startstop, above=0.5cm of setcurrent] {return mutation type of child};
|
||||
|
||||
\node (nonecheck) [decision, below=of failcheck] {mutation\_type is NONE?};
|
||||
\node (savechild) [process, right=1.2cm of nonecheck] {save as none\_mutation\_node};
|
||||
|
||||
\node (assert) [process, below=of nonecheck] {assert none\_mutation\_node is not None};
|
||||
\node (return3) [startstop, below=of assert] {return none\_mutation\_node};
|
||||
|
||||
% Arrows
|
||||
\draw [arrow] (start) -- (check1);
|
||||
\draw [arrow] (check1.east) -- node[above] {Yes} (addnode.west);
|
||||
\draw [arrow] (addnode) -- (return1);
|
||||
|
||||
\draw [arrow] (check1.south) -- node[left] {No} (loopstart);
|
||||
\draw [arrow] (loopstart) -- (failcheck);
|
||||
\draw [arrow] (failcheck.east) -- node[above] {No} (mutcheck.west);
|
||||
\draw [arrow] (mutcheck) -- node[right] {Yes} (setcurrent);
|
||||
\draw [arrow] (setcurrent) -- (return2);
|
||||
|
||||
\draw [arrow] (mutcheck.south) -- node[right] {No} ++(0,-1) -| (nonecheck.east);
|
||||
\draw [arrow] (failcheck.south) -- node[left] {Yes} (loopstart);
|
||||
\draw [arrow] (nonecheck.east) -- node[above] {Yes} (savechild);
|
||||
\draw [arrow] (nonecheck.south) -- (assert);
|
||||
\draw [arrow] (assert) -- (return3);
|
||||
|
||||
\end{tikzpicture}
|
||||
\begin{figure}
|
||||
\centering
|
||||
\input{Graphics/determine_next_mutation_flow.tikz}
|
||||
\caption{Flow on how to determine the next mutation that should be used.}
|
||||
\label{fig:next_mutation_flow}
|
||||
\end{figure}
|
||||
|
||||
\begin{figure}
|
||||
\centering
|
||||
\input{Graphics/mutation_tree.tikz}
|
||||
\caption{Tree structure for recording.}
|
||||
\caption{Tree structure of recording.}
|
||||
\label{fig:tree_structure}
|
||||
\end{figure}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user