-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tex
358 lines (300 loc) · 10.2 KB
/
main.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
\documentclass[12pt, twoside]{book}
%%%%%%%% Preamble %%%%%%%%%%%%
\title{Degree project}
\usepackage[utf8]{inputenc} % File coding uses utf8
\usepackage{amsmath} % Extra commands for math
\usepackage{amssymb} % Math symbols
\usepackage{graphicx} % Include images in LaTeX
\usepackage{color} % Coloring text
\usepackage{enumerate}
\usepackage{titletoc}
\usepackage{float} % Allow you to use [H] specifier to force the position of the images
\usepackage{capt-of} % Defines a command \captionof for putting a caption to something that’s not a float.
\usepackage{sidecap} % Defines environments called SCfigure and SCtable (analogous to figure and table) to typeset captions sideways
\sidecaptionvpos{figure}{c} % Alignment
\usepackage{caption} % to customize the captions in floating environments like figure and table
\usepackage{commath} % Mathematics typesetting support
\usepackage{cancel} % Place lines through maths formulae
\usepackage{anysize} % to set up document margins
\marginsize{3.5cm}{2cm}{2.54cm}{2.54cm} % Left, right, up, down
\usepackage{wrapfig}
% \usepackage[top=2.54cm,bottom=2.54cm,left=3.5cm,right=2cm]{geometry}
\usepackage{appendix} %Extra control of appendices
\usepackage{tocbibind}
\usepackage{colortbl}
%EXTRA PACKAGES
\usepackage{indentfirst}
\usepackage{multirow}
\usepackage[toc, acronym]{glossaries}
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
\usepackage{multirow}
\usepackage{tabulary}
\usepackage{enumitem}
\usepackage{enumerate}
\usepackage{changepage}
\usepackage{alltt}
\usepackage{listings}
\usepackage{longtable,lscape}
\usepackage{lmodern}
\usepackage{gensymb}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=blue,
filecolor=black,
linkcolor=black,
urlcolor=black
}
\usepackage{listings}
\usepackage{color}
\lstloadlanguages{C,C++,csh,Java}
\definecolor{red}{rgb}{0.6,0,0}
\definecolor{blue}{rgb}{0,0,0.6}
\definecolor{green}{rgb}{0,0.8,0}
\definecolor{cyan}{rgb}{0.0,0.6,0.6}
\definecolor{gray}{rgb}{0.753,0.753,0.753}
\lstset{
language=csh,
basicstyle=\footnotesize\ttfamily,
numbers=left,
numberstyle=\tiny,
numbersep=5pt,
tabsize=2,
extendedchars=true,
breaklines=true,
frame=b,
stringstyle=\color{blue}\ttfamily,
showspaces=false,
showtabs=false,
commentstyle=\color{green},
morecomment=[l]{//}, %use comment-line-style!
morecomment=[s]{/*}{*/}, %for multiline comments
showstringspaces=false,
morekeywords={ abstract, event, new, struct,
as, explicit, null, switch,
base, extern, object, this,
bool, false, operator, throw,
break, finally, out, true,
byte, fixed, override, try,
case, float, params, typeof,
catch, for, private, uint,
char, foreach, protected, ulong,
checked, goto, public, unchecked,
class, if, readonly, unsafe,
const, implicit, ref, ushort,
continue, in, return, using,
decimal, int, sbyte, virtual,
default, interface, sealed, volatile,
delegate, internal, short, void,
do, is, sizeof, while,
double, lock, stackalloc,
else, long, static,
enum, namespace, string},
keywordstyle=\color{cyan},
identifierstyle=\color{red},
backgroundcolor=\color{white},
}
\usepackage{caption}
\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox{blue}{\parbox{\textwidth}{\hspace{15pt}#1#2#3}}}
\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white, singlelinecheck=false, margin=0pt, font={bf,footnotesize}}
\lstdefinestyle{sharpc}{language=[Sharp]C, frame=lr, rulecolor=\color{blue!80!black}}
% Reset page margins properly for doublesided pages
\setlength{\marginparwidth}{0pt}
\setlength{\marginparsep}{0pt}
\setlength{\oddsidemargin}{0.125in}
\setlength{\evensidemargin}{0.125in}
\setlength{\textwidth}{6.375in}
\setlength{\parindent}{1em}
\setlength{\tabcolsep}{18pt}
\raggedbottom
%%% Theorem-like environments %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%\usepackage{mathtools}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}
\newtheorem{lemma}{Lemma}
\newtheorem{proposition}{Proposition}
\newtheorem{conjecture}{Conjecture}
\newtheorem{definition}{Definition}
\newtheorem{remark}{Remark}
\newtheorem{example}{Example}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Put your local definitions here %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For example,
\newcommand{\R}{\mathbb{R}}
\let\cleardoublepage\clearpage
% Header and Footer
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\footnotesize University of Science and Technology of Hanoi}
\fancyfoot[R]{\footnotesize Bachelor Thesis}
\fancyfoot[C]{\thepage} % center
\fancyfoot[L]{\footnotesize Information and Communications Technology} %left
\renewcommand{\footrulewidth}{0.4pt}
\fancypagestyle{firststyle}
{
\fancyhf{}
}
\usepackage{listings} % To use source code
\definecolor{dkgreen}{rgb}{0,0.6,0} % Color for using code
% Language to use
%%%%%%%% glossaries %%%%%%%%%%%%
\makeglossaries
\newacronym{usth}{USTH}{University of Science and Technology of Hanoi}
\newacronym{vast}{VAST}{Vietnam Academy of Science and Technology}
\newacronym{api}{API}{application programming interface}
\newacronym{db}{DB}{database}
\newacronym{dbms}{DBMS}{database managment system}
\newacronym{http}{HTTP}{Hypertext Transfer Protocol}
\newacronym{sql}{SQL}{structured query language}
\newacronym{jdbc}{JDBC}{Java Database Connectivity}
\newacronym{json}{JSON}{JavaScript Object Notation}
\newacronym{acl}{ACL}{Access Control List}
\newacronym{rbac}{RBAC}{Role-Based Access Control}
\newglossaryentry{classDiagram}
{
name=Application package,
description={A collection of programs or modules that is directed at some generic application and can be tailored (perhaps with some additions) to the needs of a specific instance of that application.}
}
\newglossaryentry{boundary}
{
name=Boundary class,
description={a class that is the boundary of the system and other system or user (which is actor in the use case diagram).}
}
\newglossaryentry{control}
{
name=Control class,
description={A control class manages the flow of interaction of the scenario. A control class to achieves use cases in the use case diagram.}
}
\newglossaryentry{entity}
{
name=Entity class,
description={An entity is a long-lived, passive class that is responsible for some meaningful
chunk of information. that class has data.}
}
\newglossaryentry{sequence}
{
name=Sequence diagram,
description={an interaction diagram that shows how processes operate with one another and in what order, and shows object interactions arrange in time sequence.}
}
\newglossaryentry{briefDesc}
{
name=Brief Description,
description={The models of discourse along with exposition, argumentation and narration about summary, meaning, role of Use Cases.}
}
\newglossaryentry{flow}
{
name=Flow of Events,
description={The set of actions ordered to perform a Use Case in the system.}
}
\newglossaryentry{basicFlow}
{
name=Basic flow,
description={The set of required actions to perform Use Case in the system.}
}
\newglossaryentry{altFlow}
{
name=Alternative flow,
description={Actions that are not compulsory for the Use Case but they are necessary to
get all provided function of system.}
}
\newglossaryentry{preCon}
{
name=Pre-Condition,
description={a statement or set of statements that outline a condition that should be true,
or conditions that should be true, when the operation is called. The operation is not guaranteed to perform as it should unless the pre-conditions have been met.}
}
\newglossaryentry{postCon}
{
name=Post-Condition,
description={a statement or statements describing the condition that will be true when the operation has completed its task. If the operation is correct and the pre-condition(s) met, then the post-condition is guaranteed to be true.}
}
\title{Degree project}
%%%%%%%% Preamble ends %%%%%%%%%%%%
\begin{document}
\linespread{1.25}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Cover Page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\thispagestyle{firststyle}
\begin{center}
\textsc{\Large University of Science and Technology of Hanoi}
\vspace*{-3cm}
\begin{minipage}{0.48\textwidth}
\begin{center}
\includegraphics[scale = 0.2]{images/usth_logo.png}
\end{center}
\end{minipage}
\vspace*{1cm}
\begin{minipage}{0.9\textwidth}
\begin{center}
\textsc{\LARGE Bachelor Thesis}
\end{center}
\end{minipage}\\[0.5cm]
\vspace*{1cm}
{ \huge \bfseries Development of \\ Data Lake APIs and Dashboard}\\[0.4cm]
\vspace*{0.5cm}
{ \large
\emph{Author:} \\
{Nguyen Phuong Thao} \\
{USTHBI9-212} \\
\vspace*{1.5cm}
\emph{Supervisor:} \\
Dr. TRAN Giang Son, USTH ICT Lab \\
}
\begin{center}
{Hanoi - July 2021}
\end{center}
\end{center}
%%%%%%%%%%%%%%%%%%%% Cover page ends %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
\chapter{Acknowledgments}
\label{chap:acknowledgments}
\input{chapters/acknowledgments.tex}
\tableofcontents
\listoftables
% \listoffigures
\startlist[main]{lof}% starts main list of figures
\printlist[main]{lof}{}{\chapter*{List of Figures}}%prints main list of figures
\mainmatter
\chapter{Introduction}
\label{chap:intro}
\input{chapters/introduction.tex}
\chapter{Objectives}
\label{chap:object}
\input{chapters/objectives.tex}
\chapter{Requirement Analysis}
\label{chap:requirement_analysis}
\input{chapters/requirement_analysis.tex}
\chapter{Methodology}
\label{chap:methods}
\input{chapters/metodology.tex}
\chapter{Results and Discussion}
\label{chap:results}
\input{chapters/results.tex}
%\chapter{Discussion}
%\label{chap:results}
%\input{chapters/discussion.tex}
\chapter{Conclusions}
\label{chap:conclusions}
\input{chapters/conclusions.tex}
%%%%%%% Bibliography %%%%%%%%
\printglossary
\printglossary[type=\acronymtype]
\glsaddallunused
\bibliographystyle{bst/IEEEtran}
\bibliography{bib/IEEEreferences}
% \addbibresource{references.bib}
% \printbibliography
%%%%%%% Bibliography %%%%%%%%
\appendix
\clearpage % o \cleardoublepage
\addappheadtotoc
\appendixpage
\stoplist[main]{lof}% stops main list of figures
\startlist[appendix]{lof}% starts list of figures in appendices
\printlist[appendix]{lof}{}{\chapter*{List of Figures in Appendices}}% prints list of figures in appendices
\clearpage
\input{chapters/appendix.tex}
\end{document}