%% ----------------------------------------------------------------
%% Thesis.tex -- main
%% ---------------------------------------------------------------- 

\documentclass[a4paper, 10pt, oneside]{memoir}
%% Use the option citeauthor to be able to use citet. The default cite will still work.
\usepackage[citeauthor]{basilea}
\usepackage{minted}
\usepackage{enumitem}
\usepackage{caption}
\usepackage{float}
\usepackage{listings}

\usepackage[toc, acronym]{glossaries}
\makeglossaries

%% ----------------------------------------------------------------

\title				{IOTTB: An Automation Testbed for IOT Devices}
\thesistype			{Bachelor Project}

\department 		    {Department of Mathematics and Computer Science}
\faculty			{Natural Science Faculty of the University of Basel}
\research		    {Privacy Enhancing Technologies \\ https://pet.dmi.unibas.ch}

\examiner    		{Prof. Dr. Isabel Wagner}
\supervisor  		{Valentyna Pavliv}

\authors     		{Sebastian Lenzlinger}
\email				{sebastian.lenzlinger@unibas.ch}
\immatriculnr		{2018-775-494}

\date				{30. June 2024}

% switch here for the german logo to logo-de
\ulogo				{Template/logo-en} 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Glossary and Acronyms
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setacronymstyle{long-short}
\newacronym{iot}{IoT}{Internet of Things}
\newacronym{os}{OS}{Operating System}
\newacronym{cli}{CLI}{Command Line Interface}
\newacronym{ap}{AP}{Access Point}
\newacronym{uuid}{UUID}{Universally Unique Identifier}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Personal commands specific to my report 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\iot}{\gls{iot} }
\newcommand{\iottbsc}{\textsc{iottb} }
\newcommand{\iottb}{\texttt{iottb} }
\newcommand{\os}{\gls{os} }
\newcommand{\ap}{\gls{ap} }
\newcommand{\db}{\texttt{iottb.db} }
\newcommand{\sniff}{\texttt{sniff} }
\newcommand{\addev}{\texttt{add-device} }
\newcommand{\dsn}{\texttt{device\_short\_name} }
\newcommand{\dname}{\texttt{device\_name} }
\newcommand{\did}{\texttt{device\_id} }
\newcommand{\cid}{\texttt{capture\_id} }
\newcommand{\uuid}{\gls{uuid}}
\newcommand{\cli}{\gls{cli} }
\newcommand{\mytodo}[1][0]{{\color{red}\textsc{TODO}: #1 \label{todo:#1}}}
%% ----------------------------------------------------------------
\begin{document}

% for english use \selectlanguage{english}, for german use \selectlanguage{ngerman}
\selectlanguage{english}

\thesisfront
\maketitle
\pagestyle{thesis}
%% ----------------------------------------------------------------
% \input{./Front/Acknowledgment}
%% ----------------------------------------------------------------
\input{./Front/Abstract}
%% ----------------------------------------------------------------
\thesistoc
%% ----------------------------------------------------------------
%\thesisnomencl
%% ----------------------------------------------------------------
\thesismain

\input{./Chapters/ch1-introduction}
\input{Chapters/ch2-background}
\input{Chapters/ch3-adaptation}
\input{Chapters/ch4-iottb}
\input{Chapters/ch5-evaluation}
\input{Chapters/ch6-conclusion}

%% ----------------------------------------------------------------
\thesisappendix
\printglossary[type=\acronymtype]
\thesisbib
\begin{appendices}
	\input{./Back/AppendixA} 
    \input{./Back/AppendixB}
    \input{Back/CommandRef}
\end{appendices}
%% ----------------------------------------------------------------
\thesisback
\iflanguage{english}
  {\includepdf{./Back/wissensch_Redlichkeit_E_09-2023.pdf}}
  {\includepdf{./Back/wissensch_Redlichkeit_D_09-2023.pdf}}
%% ----------------------------------------------------------------
\end{document}
%% ----------------------------------------------------------------
