Revision 1793 trunk/docs/uml/admb-component.tex

admb-component.tex (revision 1793)
5 5
%\usepackage{fullpage}
6 6
\usepackage[pdftex]{pict2e}
7 7
%\usepackage{calc}
8
\usepackage[nomessages]{fp}
8
\usepackage[nomessages]{fp} % for computing positions in picture boxes
9 9
%\usepackage[pdftex]{hyperref}
10 10
\usepackage{color}
11 11
\listfiles
......
39 39
\author{John Sibert}
40 40

  
41 41
\begin{document}
42

  
43
%Text before figure.
44
\begin{figure}[t]
45

  
42 46
%\small
43 47
\sffamily
44 48
\setlength{\unitlength}{0.01\textwidth}
......
83 87
                  \put(0,0){\framebox(\commX,13){%
84 88
                  \put(1,11){{\tt ad\_comm(...)}}
85 89
                  \put(0,10){\line(1,0){\commX}}
86
                  \callout{8}{50}{11}{6.0}{Process certain\\ user-specified\\ commmand-line options}{3}
90
                  \callout{8}{50}{11}{6.0}{Process certain\\ user-specified\\ commmand-line options}{4}
87 91
                  \put(1,5){Initialize {\tt ad\_comm} member variables}
88 92
                  \put(1,2){Set file names for I/O operations}
89 93
                  }} % ad_comm box
......
91 95
              \put(1,7){Read data from {\tt .dat} or}
92 96
              \put(1,3){user-specified file.}
93 97
              {\color{blue}\thicklines
94
              \callout{1}{50}{1}{5}{Allocate variables\\ defined in\\DATA\_SECTION}{2}
98
              \callout{1}{50}{1}{5}{Allocate variables\\ defined in\\DATA\_SECTION}{3}
95 99
              } % blue
96 100
              }} %model_data box
97 101
              \end{picture}}
98 102
              \callout{10}{\mainX}{12}{7}{Execute user code in\\ INITIALIZATION\_\\ SECTION}{2}
99 103
              {\color{blue}\thicklines
100
              \callout{7}{\mainX}{9}{0}{Alllocate parameters in\\ \\ PARAMETER\_SECTION}{2}
104
              \callout{7}{\mainX}{9}{0}{Alllocate parameters in\\ \\ PARAMETER\_SECTION}{3}
101 105
              } % blue
102 106
              \put(1,3){Append user variables}
103 107
              \put(1,0){ADMB parameter vector.}
104 108
          }} %model_parameters box
105 109
          \end{picture}}
106
          \callout{28}{\mainX}{28}{20}{Execute user code in\\PRELIMINARY\_CALCS\_\\ SECTION}{0}
110
          \callout{28}{\mainX}{28}{20}{Execute user code in\\PRELIMINARY\_CALCS\_\\ SECTION}{1}
107 111

  
112
         \put(1,1){\begin{picture}(\mpX,24)
113
         %     \color{red}
114
              \put(0,0){\framebox(\mpX,24){%
115
              \put(1,21){{\tt mp.computations(...)}}
116
              \put(0,20){\line(1,0){\mpX}}
117
              \put(1,17){Set up minimizer control structure.}
118
              \put(1,12){No more room in this box.}
119
              \put(1,8){See Figure Figure~\ref{fig:comp2}}
120
          }} %model_parameters box
121
          \end{picture}}             
108 122
    }} % main() box
109 123
    \end{picture}}
110 124

  
111 125
\end{picture}
126
\caption{\label{fig:comp1}\rmfamily
127
Components invoked during startup phases of an 
128
ADMB application. Ovals set in {\color{blue}blue} type indicate required SECTIONs.
129
For subsequent components see Figure~\ref{fig:comp2}.
130
}
131
\end{figure}
112 132

  
133
%Text after figure.
134

  
113 135
\end{document}
114 136

  

Also available in: Unified diff