diff --git a/doc/mainDocument/img/Car.png b/doc/mainDocument/img/Car.png new file mode 100644 index 0000000000000000000000000000000000000000..820add40ed8103e7cfc561efa2871e8f6e0d9a6b Binary files /dev/null and b/doc/mainDocument/img/Car.png differ diff --git a/doc/mainDocument/img/SoftwareArch.jpg b/doc/mainDocument/img/SoftwareArchitektur.jpg similarity index 100% rename from doc/mainDocument/img/SoftwareArch.jpg rename to doc/mainDocument/img/SoftwareArchitektur.jpg diff --git a/doc/mainDocument/img/Systemarchitektur.png b/doc/mainDocument/img/SystemArchitektur.png similarity index 100% rename from doc/mainDocument/img/Systemarchitektur.png rename to doc/mainDocument/img/SystemArchitektur.png diff --git a/doc/mainDocument/mainDocument.tex b/doc/mainDocument/mainDocument.tex index a285ff8e0b2a6d4cd68170b471f653b13153bb2b..7a98ad6d095016211e0ba324bd218b2b6ae758a0 100644 --- a/doc/mainDocument/mainDocument.tex +++ b/doc/mainDocument/mainDocument.tex @@ -9,11 +9,11 @@ \usepackage[hidelinks]{hyperref} \usepackage{tabularx} % used for better table formatting see: https://en.wikibooks.org/wiki/LaTeX/Tables#The_tabularx_package \usepackage[table]{xcolor} -\usepackage{graphicx} % Bilder, Fotos -\usepackage{subfiles} % split doc into multiple .tex subfiles +\usepackage{graphicx} % Bilder, Fotos +\usepackage{subfiles} % split doc into multiple .tex subfiles \graphicspath{ {./img/} } \usepackage{float} % used to allow the [H] option for tables, etc. -\usepackage{verbatim} % makes multiline comments possible via \begin{comment}\end{comment} +\usepackage{verbatim} % makes multiline comments possible via \begin{comment}\end{comment} \usepackage{ifthen, tikz, xstring, calc, pgfopts} % required for tikz-uml \usepackage{../tikz-uml} @@ -53,7 +53,7 @@ %%% DOCUMENT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} - + \maketitle \tableofcontents @@ -61,7 +61,7 @@ \subfile{sections/organisation} \subfile{sections/ausbaustufen} \subfile{sections/usecases} -\subfile{sections/architektur} +\subfile{sections/architektur} \subfile{sections/modspez} \subfile{sections/test} \subfile{sections/auswertung} @@ -76,6 +76,5 @@ \phantomsection \addcontentsline{toc}{section}{Bibliography} \printbibliography - -\end{document} +\end{document} \ No newline at end of file diff --git a/doc/mainDocument/sections/architektur.tex b/doc/mainDocument/sections/architektur.tex index 65b161fb31131205667c782d3ed3f046355686bd..700048a75d9fc9969c4de2d329a1093f085d4911 100644 --- a/doc/mainDocument/sections/architektur.tex +++ b/doc/mainDocument/sections/architektur.tex @@ -15,7 +15,7 @@ \end{figure} \begin{figure}[h] \begin{center} - \includegraphics[scale=0.5]{Systemarchitektur} + \includegraphics[scale=0.5]{SystemArchitektur} \end{center} \caption{Odriod-System} \label{fig:hardware-sys} @@ -201,6 +201,6 @@ \subsection{Softwarearchitktur} %tikz oder drawio -\includegraphics[width=\textwidth]{SoftwareArch} +\includegraphics[width=\textwidth]{SoftwareArchitektur} \end{document} \ No newline at end of file diff --git a/doc/mainDocument/tikzImgs/uc_diagram.tex b/doc/mainDocument/tikzImgs/uc_diagram.tex index 3471ed2f61a08881af5df02fc847a91e3919aa3b..2da9716f86b531bcb12d22fec4e880eefd55ea84 100644 --- a/doc/mainDocument/tikzImgs/uc_diagram.tex +++ b/doc/mainDocument/tikzImgs/uc_diagram.tex @@ -12,15 +12,15 @@ \umlusecase[x=3, y=-17, width=34mm, fill=green!30]{\nameref{UC:changeSpeed}} \end{umlsystem} - \umlactor[x=0, y=-10]{Operator} - \umlactor[x=14, y=-10]{LV} - \umlactor[x=14, y=-5]{FV} - \umlactor[x=14, y=-15]{PFV} - \umlactor[x=14, y=1]{GV} + \umlactor[x=0, y=-11]{Operator} + \umlcar[x=15, y=-10]{LV} + \umlcar[x=15, y=-5]{FV} + \umlcar[x=15, y=-15]{PFV} + \umlcar[x=15, y=1]{GV} - \umlHVHinherit[arm2=10mm]{LV}{GV} - \umlHVHinherit[arm2=10mm]{FV}{GV} - \umlHVHinherit[arm2=10mm]{PFV}{GV} + \umlHVHinherit[arm2=16mm]{LV}{GV} + \umlHVHinherit[arm2=16mm]{FV}{GV} + \umlHVHinherit[arm2=16mm]{PFV}{GV} \umlassoc{Operator}{usecase-1} \umlassoc{Operator}{usecase-4} diff --git a/doc/tikz-uml.sty b/doc/tikz-uml.sty index eacab58d6dd4ad1bf636858aa6da3ece1bd021ce..16f7a7ee85e96a373765d0e32b51cfebece75338 100644 --- a/doc/tikz-uml.sty +++ b/doc/tikz-uml.sty @@ -2790,6 +2790,84 @@ % }% +%----------------------------------------------------------------------------------------------- +% +% copy and paste of the above section in order to replace the actor symbol with a car picture +% +% define the actor symbol +% optional : global tikzpicture styles +\newcommand{\picturedcar}[1]{% + \pgfkeys{/tikzuml/picactor/.cd, scale/.initial=1, .unknown/.code={}}% + \pgfkeys{/tikzuml/picactor/.cd,#1}% + \pgfkeys{/tikzuml/picactor/.cd, scale/.get=\tikzumlPicturedActorScale}% + % + \begin{tikzpicture}[#1]% + \node at (0,0) {\includegraphics[width=3em]{img/Car.png}};% + \end{tikzpicture}% +}% +% +% define an actor +% arg : var name +% optional : x, y: coordinates of the actor +% scale: scale factor of the actor symbol +% below: distance between the actor symbol and its name below +% draw, text: colors +% style: to manage every default TikZ option +% no coords: to tell that the actor position is defined relatively +% to another node (automatically used with TikZ options above, below, left, right, below left, ...) +\newcommand{\umlcar}[2][]{% + \stepcounter{tikzumlActorNum}% + \pgfkeys{/tikzuml/actor/.cd, x/.initial=\tikzumlDefaultX, y/.initial=\tikzumlDefaultX, scale/.initial=1, below/.initial=\tikzumlActorDefaultBelow,% + draw/.initial=\tikzumlDefaultDrawColor, text/.initial=\tikzumlDefaultTextColor,% + style/.style={},% + no coords/.is if=tikzumlactorWithoutCoords,% + no coords=false,% + .unknown/.code={% + \let\keyname=\pgfkeyscurrentname% + \let\keyvalue=\pgfkeyscurrentvalue% + \ifthenelse{\equal{\keyname}{above}\OR% + \equal{\keyname}{left}\OR% + \equal{\keyname}{below}\OR% + \equal{\keyname}{right}\OR% + \equal{\keyname}{above left}\OR% + \equal{\keyname}{above right}\OR% + \equal{\keyname}{below left}\OR% + \equal{\keyname}{below right}}{% + \IfSubStr{\keyvalue}{ of }{% + \pgfkeys{/tikzuml/actor/.cd, no coords}% + }{}% + }{}% + \ifx\keyvalue\pgfkeysnovalue% + \pgfkeys{/tikzuml/actor/.cd, style/.append style/.expand once={\keyname}}% + \else% + \pgfkeys{/tikzuml/actor/.cd, style/.append style/.expand twice={\expandafter\keyname\expandafter=\keyvalue}}% + \fi% + %\errmessage{TIKZUML ERROR : in umlactor, invalid option \keyname}% + }% + }% + \pgfkeys{/tikzuml/actor/.cd, #1}% + \pgfkeys{/tikzuml/actor/.cd,% + x/.get=\tikzumlActorX, y/.get=\tikzumlActorY, scale/.get=\tikzumlActorScale,% + below/.get=\tikzumlActorBelow,% + draw/.get=\tikzumlActorDrawColor, text/.get=\tikzumlActorTextColor}% + % + \def\tikzumlActorName{#2}% + \begingroup% + \def\_{_}\edef\x{\endgroup% + \def\noexpand\tikzumlActorNodeName{\tikzumlActorName}}\x% + % + \def\tikzumlActorPos{\tikzumlActorX,\tikzumlActorY}% + % + \iftikzumlactorWithoutCoords% + \node[tikzuml actor style, text=\tikzumlActorTextColor, font=\tikzumlDefaultFont, /tikzuml/actor/style] (\tikzumlActorNodeName) {\picturedcar{scale=\tikzumlActorScale, fill=white, draw=\tikzumlActorDrawColor, thick}};% + \else% + \node[tikzuml actor style, text=\tikzumlActorTextColor, font=\tikzumlDefaultFont, /tikzuml/actor/style] (\tikzumlActorNodeName) at (\tikzumlActorPos) {\picturedcar{scale=\tikzumlActorScale, fill=white, draw=\tikzumlActorDrawColor, thick}};% + \fi% + \node[text=\tikzumlActorTextColor, font=\tikzumlDefaultFont, below=\tikzumlActorScale*\tikzumlActorBelow] at (\tikzumlActorNodeName) {\tikzumlActorName};% + % +}% +%----------------------------------------------------------------------------------------------- + % shortcuts for include and extend relation \newcommand{\umlinclude}[3][]{% \pgfkeys{/tikzuml/includerelation/.cd,%