Skip to content

Commit

Permalink
chore: chapter organization
Browse files Browse the repository at this point in the history
  • Loading branch information
vitlinda committed Oct 18, 2022
1 parent b364bdc commit 487ba31
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 60 deletions.
6 changes: 3 additions & 3 deletions report/mdm-dt.tex
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@
\clearpage

\input{sections/introduction.tex}
\input{sections/motivations.tex}
\input{sections/domain-analysis.tex}
\input{sections/architecture.tex}
\input{sections/digital-twins.tex}
\input{sections/bounded-contexts.tex}
\input{sections/context-map.tex}
\input{sections/development.tex}
\input{sections/conclusions.tex}

\nocite{*}
\newpage
Expand Down
58 changes: 58 additions & 0 deletions report/sections/architecture.tex
Original file line number Diff line number Diff line change
@@ -1 +1,59 @@
\chapter{Architecture}
% parlare della clean architecture + immagine

\section{Context Map}
In this chapter, we analyzed the bounded contexts related to digital twins and their relationships.
The context map in figure \ref{img:context-map} represents the relationships patterns between the bounded contexts.

\begin{itemize}
\item \textbf{MilkPlanning [D, ACL] $\leftarrow$ [U] MilkTankDT}

\texttt{MilkPlanning} receives the information about the tanks' milk quantity from the \texttt{MilkTankDT}.
\texttt{MilkPlanning} is a downstream bounded context and has an Anti-Corruption Layer.

\item \textbf{Stocking [D, ACL] $\leftarrow$ [U] PackagingMachineDT \\
Stocking [D, ACL] $\leftarrow$ [U] ScaleDT \\
Stocking [D, ACL] $\leftarrow$ [U] MetalDetectorDT}

\texttt{Stocking} receives the information about the quality assurance status considering the packaging machine, scale and metal detector. Data are sent from the \texttt{PackagingMachineDT}, \texttt{ScaleDT} and \texttt{MetalDetectorDT} respectively.
\texttt{Stocking} is a downstream bounded context and has an Anti-Corruption Layer.

\item \textbf{Alert [D, ACL] $\leftarrow$ [U] MilkTankDT \\
Alert [D, ACL] $\leftarrow$ [U] MetalDetectorDT \\
Alert [D, ACL] $\leftarrow$ [U]PackagingMachineDT \\
Alert [D, ACL] $\leftarrow$ [U]ScaleDT}

\texttt{Alert} receives the alerting messages from the digital twins. Data are sent from the \texttt{MilkTankDT}, \texttt{MetalDetectorDT}, \texttt{PackagingMachineDT} and \texttt{ScaleDT} respectively.
\texttt{Alert} is a downstream bounded context and has an Anti-Corruption Layer.

\item \textbf{MilkPlanning [D, ACL] $\leftarrow$ [U] Stocking}

\texttt{MilkPlanning} asks \texttt{Stocking} for the amount of products in stock.
\texttt{MilkPlanning} is a downstream bounded context and has an Anti-Corruption Layer.

\item \textbf{Alert[D, ACL] $\leftarrow$ [U] Maintenance}

\texttt{Maintenance} sends the alerting messages about machine failure to \texttt{Alert}.
\texttt{Alert} is a downstream bounded context and has an Anti-Corruption Layer.

\item \textbf{Maintenance[D, ACL] $\leftarrow$ [U] PackagingMachineDT}

\texttt{Maintenance} receives the information about the packaging machine status from \texttt{PackagingMachineDT} in order to forecast packaging machine failures.
\texttt{Maintenance} is a downstream bounded context and has an Anti-Corruption Layer.

\item \textbf{Reporting[D] $\leftarrow$ [U] ScaleDT \\
Reporting[D] $\leftarrow$ [U] MetalDetectorDT }

\texttt{Reporting} receives information from \texttt{ScaleDT} and \texttt{MetalDetectorDT} about their status in order to generate reports.


\end{itemize}

\begin{figure}[H]
\centering
\includegraphics[width=\textwidth]{img/context-map.png}
\caption{Context Map}
\label{img:context-map}
\end{figure}


7 changes: 7 additions & 0 deletions report/sections/conclusions.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
\chapter{Conclusions}
Considerazioni su utilizzo di ddd per dt:
il ddd si sposa bene con i concetti specifici del dominio.
nel nostro ambito i dt sono fortemente correlati ai macchinari che quindi non ricadono negli elementi
caratterizzanti del dominio pertanto le tecniche ddd non applicabili per modellare i dt.
tuttavia modellare con tecniche ddd tutto il dominio si ha maggiore conoscenza del dominio e aiutano ad individuare
punti dove potenzialmente possono essere impiegati i dt per supportare i processi e i bounded contexts.
56 changes: 0 additions & 56 deletions report/sections/context-map.tex

This file was deleted.

3 changes: 3 additions & 0 deletions report/sections/development.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
\chapter{Development}
\section{Ditto}
% mettere qualche snippet di codice degli handler
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
\chapter{Motivations}
\chapter{Domain Analysis}
% event storming con aggiunta dei DT
% fare immagini che si focalizzano su milk planning e stocking e mostrare come questi subdomain si interfaccino con i DT
% immagine di business differentiation



\section{Motivations}
% facciamo un capitolo "Motivazioni" dove descriviamo tutti questi scenari che giustificano l'inserimento di un DT.
% Esempio nel caso della bilancia, scenario:
% con il tempo si osserva che un determinato prodotto inizia ad avere mediamente un peso maggiore o inferiore rispetto al peso di riferimento. Questo potrebbe essere sintomo di una problematica nel confezionamento (es. formine deformate).
Expand Down

0 comments on commit 487ba31

Please sign in to comment.