firt draft sequence diagram
authorMart Lubbers <mart@martlubbers.net>
Thu, 1 May 2014 07:29:12 +0000 (09:29 +0200)
committerMart Lubbers <mart@martlubbers.net>
Thu, 1 May 2014 07:29:12 +0000 (09:29 +0200)
softwaredesign/sequence/Makefile
softwaredesign/sequence/sequence_diagram.tex

index b80beb1..d75b1c7 100644 (file)
@@ -1,2 +1,3 @@
 all:
        pdflatex sequence_diagram.tex
+       pdflatex sequence_diagram.tex
index 13cd2d5..d564d7f 100644 (file)
 \documentclass{article}
 
+%\usepackage{fullpage}
+\usepackage[a3paper, margin=2cm, landscape]{geometry}
 \usepackage{tikz}
-\usetikzlibrary{arrows,shadows}
+%\usetikzlibrary{arrows,shadows}
 \usepackage{pgf-umlsd}
 
+\pagestyle{empty}
+
 \begin{document}
+\resizebox{380mm}{!}{
+       \begin{sequencediagram}
+               \newinst[3]{s}{Sources RSS/WEB/MAIL}
+               \newinst[3]{u}{Non IT person}
+               \newinst[3]{f}{Hypfront}
+               \newinst[3]{c}{Hypcrawler}
+               \newinst[3]{o}{Hypconverter}
+               \newinst[3]{b}{Hyperleap backend}
 
-\resizebox{!}{1\textheight}{
+               \begin{sdblock}{Add site to crawler}{}
+                       \begin{call}{u}
+                               {Identify source}
+                                       {s}
+                               {true}
+                       \end{call} 
 
-\begin{sequencediagram}
+                       \begin{call}{u}
+                               {Ask frontend}
+                                       {f}
+                               {Get interactive session}
+                       \end{call}
 
-\newthread[white]{u}{Non IT person}
-\newinst[3]{b}{Hypfront}
-\newinst[3]{b}{Hypcrawler}
-\newinst[3]{b}{Hypconverter}
-\newinst[3]{b}{Hyperleap backend}
-% 
-%\begin{sdblock}{Setting up crawler}{}
-%
-%  \begin{call}{u}{goToDSView()}{f}{showDSView()}
-%  \end{call} 
-%  
-%  \begin{sdblock}{Loop}{}
-%    \begin{call}{u}{draw()}{f}{showDraw()}
-%    \end{call}
-%  \end{sdblock}
-%  
-%  \begin{call}{u}{saveShape()}{f}{returnToEditor()}
-%    \begin{call}{f}{promptDefineAttributes()}{u}{defineAttributes()}
-%    \end{call}
-%    \begin{call}{f}{sendAttributes()}{b}{true}
-%    \end{call}
-%  \end{call}  
-%
-%\end{sdblock}
-%
-%\begin{sdblock}{Create Diagram}
-%
-%  \begin{call}{u}{createDiagram()}{f}{showDView()}
-%  \end{call}
-%  
-%  \begin{sdblock}{Loop}{}
-%    \begin{call}{u}{addShape()}{f}{showShape()}
-%      \begin{call}{f}{promptAddAttributes()}{u}{addAttributes()}
-%      \end{call}  
-%    \end{call}
-%  \end{sdblock}
-%
-%  \begin{call}{u}{saveDiagram()}{f}{returnToEditor()}
-%    \begin{call}{f}{sendAttributes()}{b}{true}
-%    \end{call}
-%  \end{call}
-%              
-%\end{sdblock}
+                       \begin{call}{u}
+                               {Train with frontend}
+                                       {f}
+                               {true}
+                       \end{call}
+
+                       \begin{call}{f}
+                               {Specify frequency}
+                                       {c}
+                               {true}
+                       \end{call}
+
+                       \begin{call}{f}
+                               {Build pattern and send}
+                                       {o}
+                               {true}
+                       \end{call}
+               \end{sdblock}
+
+               \begin{sdblock}{Periodical crawl loop}{}
+                       \begin{call}{c}
+                               {Download data}
+                                       {s}
+                               {true}
+                       \end{call}
 
-\end{sequencediagram}
+                       \begin{call}{c}
+                               {Send data}
+                                       {o}
+                               {true}
+                       \end{call}
 
+                       \begin{call}{o}
+                               {converted XML data}
+                                       {b}
+                               {true}
+                       \end{call}
+               \end{sdblock}
+                       
+
+                                       
+
+       \end{sequencediagram}
 }
 \end{document}
+
+                       
+%                      \begin{call}
+%
+%                      \begin{sdblock}{Loop}{}
+%                              \begin{call}{u}{draw()}{f}{showDraw()}
+%                              \end{call}
+%                      \end{sdblock}
+%
+%                      \begin{call}{u}{saveShape()}{f}{returnToEditor()}
+%                              \begin{call}{f}{promptDefineAttributes()}{u}{defineAttributes()}
+%                              \end{call}
+%                              \begin{call}{f}{sendAttributes()}{b}{true}
+%                              \end{call}
+%                      \end{call}      
+
+               %
+               %\begin{sdblock}{Create Diagram}
+               %
+               %  \begin{call}{u}{createDiagram()}{f}{showDView()}
+               %  \end{call}
+               %  
+               %  \begin{sdblock}{Loop}{}
+               %    \begin{call}{u}{addShape()}{f}{showShape()}
+               %      \begin{call}{f}{promptAddAttributes()}{u}{addAttributes()}
+               %      \end{call}  
+               %    \end{call}
+               %  \end{sdblock}
+               %
+               %  \begin{call}{u}{saveDiagram()}{f}{returnToEditor()}
+               %    \begin{call}{f}{sendAttributes()}{b}{true}
+               %    \end{call}
+               %  \end{call}
+               %               
+               %\end{sdblock}
+
+