source: anr/anr.sty @ 117

Last change on this file since 117 was 114, checked in by coach, 15 years ago

IA: updated data from bull and navtel

File size: 7.0 KB
Line 
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2\catcode`\@=11
3%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4
5%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6%{\catcode`\<=1\catcode`\>=2
7%       <\catcode`\{=12\gdef\OBraceTw<{>>
8%       <\catcode`\}=12\gdef\CBraceTw<}>>
9%>
10%\@ifundefined{specHasManual}{\let\specHasManual\relax}{}
11\let\specHasManual\relax
12\let\specCsgManual\relax
13\let\specXilinxOptimization\relax
14
15\def\setMacroInAuxFile#1{%
16    \global\expandafter\edef\csname#1\endcsname{\name}
17    \expandafter\immediate\expandafter\write\@auxout\expandafter{\expandafter\string\expandafter\gdef\expandafter\string\csname #1\endcsname{\name}}
18}
19\def\eoa{end-of-args}
20\def\@novers#1-#2\eoa{#1}
21\def\novers#1{\ifx\relax#1\def\next{{\color{red}FIXME}}\else\def\next{\expandafter\@novers#1\eoa}\fi\next}
22
23%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
24\let\ganttlf\relax
25\newwrite\ganttdata
26\immediate\openout\ganttdata=anr.gantt
27
28\def\enable{enable}
29\def\disable{disable}
30\def\leader{leader}
31\newenvironment{taskinfo}%
32{%
33\let\ALL\disable%
34\let\IRISA\disable%
35\let\LIP\disable%
36\let\TIMA\disable%
37\let\UBS\disable%
38\let\UPMC\disable%
39\let\XILINX\disable%
40\let\BULL\disable%
41\let\THALES\disable%
42\let\NAVTEL\disable%
43\let\ZIED\disable%
44}{%
45\ifx\ALL\enable%
46  \ifx\IRISA\disable\let\IRISA\enable\fi%
47  \ifx\LIP\disable\let\LIP\enable\fi%
48  \ifx\UPMC\disable\let\UPMC\enable\fi%
49  \ifx\TIMA\disable\let\TIMA\enable\fi%
50  \ifx\UBS\disable\let\UBS\enable\fi%
51  \ifx\XILINX\disable\let\XILINX\enable\fi%
52  \ifx\BULL\disable\let\BULL\enable\fi%
53  \ifx\THALES\disable\let\THALES\enable\fi%
54  \ifx\NAVTEL\disable\let\NAVTEL\enable\fi%
55  \ifx\ZIED\disable\let\ZIED\enable\fi%
56\fi%
57\def\@leader{\begin{small}\textcolor{red}{lead.}\end{small}}
58\def\@partner{\begin{small}\textcolor{blue}{part.}\end{small}}
59\def\@IRISA{\ifx\IRISA\disable{}\else\ifx\IRISA\enable{\@partner}\else{\@leader}\fi\fi}%
60\def\@LIP{\ifx\LIP\disable{}\else\ifx\LIP\enable{\@partner}\else{\@leader}\fi\fi}%
61\def\@UPMC{\ifx\UPMC\disable{}\else\ifx\UPMC\enable{\@partner}\else{\@leader}\fi\fi}%
62\def\@TIMA{\ifx\TIMA\disable{}\else\ifx\TIMA\enable{\@partner}\else{\@leader}\fi\fi}%
63\def\@UBS{\ifx\UBS\disable{}\else\ifx\UBS\enable{\@partner}\else{\@leader}\fi\fi}%
64\def\@XILINX{\ifx\XILINX\disable{}\else\ifx\XILINX\enable{\@partner}\else{\@leader}\fi\fi}%
65\def\@BULL{\ifx\BULL\disable{}\else\ifx\BULL\enable{\@partner}\else{\@leader}\fi\fi}%
66\def\@THALES{\ifx\THALES\disable{}\else\ifx\THALES\enable{\@partner}\else{\@leader}\fi\fi}%
67\def\@NAVTEL{\ifx\NAVTEL\disable{}\else\ifx\NAVTEL\enable{\@partner}\else{\@leader}\fi\fi}%
68\def\@ZIED{\ifx\ZIED\disable{}\else\ifx\ZIED\enable{\@partner}\else{\@leader}\fi\fi}%
69\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}\hline
70\Sirisa  & \Slip  & \Stima  & \Subs  & \Supmc  & \Sxilinx & \Sbull  & \Sthales & \Snavtel & \Szied \\\hline
71\@IRISA  & \@LIP  & \@TIMA  & \@UBS  & \@UPMC  & \@XILINX & \@BULL  & \@THALES & \@NAVTEL & \@ZIED \\\hline
72\end{tabular}\par
73}
74
75%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
76\newenvironment{objectif}%
77{\begin{description}\item[Objectives]}
78{\end{description}}
79
80%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
81\newcount\taskcnt\taskcnt=0
82\newcount\subtaskcnt
83\newcount\livrablecnt
84\newenvironment{workpackage}%
85{\global\advance\taskcnt1
86 \global\subtaskcnt0
87 \def\taskname{T\the\taskcnt}%
88 \begin{description}%
89 \let\itemsave\item%
90 \def\item{%
91    \global\advance\subtaskcnt1
92    \def\subtaskname{S\taskname-\the\subtaskcnt}%
93    \itemsave[\subtaskname]}}
94{\end{description}}
95
96%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
97\def\writeganttinfo#1#2#3#4#5{{%
98    \let\xcoach\relax
99    \let\xcoachplus\relax
100    \let\irisa\relax    \let\Sirisa\relax
101    \let\lip\relax      \let\Slip\relax
102    \let\tima\relax     \let\Stima\relax
103    \let\ubs\relax      \let\Subs\relax
104    \let\upmc\relax     \let\Supmc\relax
105    \let\altera\relax   \let\Saltera\relax
106    \let\xilinx\relax   \let\Sxilinx\relax
107    \let\bull\relax     \let\Sbull\relax
108    \let\thales\relax   \let\Sthales\relax
109    \let\zied\relax     \let\Szied\relax
110    \let\navtel\relax   \let\Snavtel\relax
111    \immediate\write\ganttdata{%
112      T=\the\taskcnt\space S=\the\subtaskcnt\space%
113      D=\the\livrablecnt\space V=\vers\space%
114      BM=#1 EM=#2 R=#3 PART={#4} TITLE=#5%
115    }
116}}
117\newenvironment{livrable}%
118{%
119 \newcount\verscnt\verscnt=-1
120 \newif\ifIsLivrableStarted\IsLivrableStartedfalse
121 \newif\ifLivrableTopLine\LivrableTopLinetrue
122 \def\livrableTableDef{\begin{tabular}{|c|c|c|c|p{.625\linewidth}|}\hline}
123 \def\livrableTableLine##1##2##3##4{%
124    \makebox[3.5em]{\begin{small}##1\end{small}} &
125    \makebox[2.2em]{\begin{small}##2\end{small}} &
126    \makebox[1.5em]{\begin{small}##3\end{small}} &
127    \makebox[2.2em]{\begin{small}##4\end{small}} &
128 }
129 \def\livrableTableTopLine{%
130   \livrableTableLine{number}{date}{type}{resp.} description
131 }
132 \livrablecnt-1
133 \ifvmode\else\vspace{.75ex}\\\fi
134   
135 \def\itemV##1##2##3##4##5{%
136    \ifIsLivrableStarted
137        \global\advance\verscnt1
138    \else
139        \global\advance\livrablecnt1
140        \global\verscnt1
141    \fi
142    \def\vers{V\the\verscnt}
143    \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}%
144    \writeganttinfo{##1}{##2}{none}{##4}{##5}
145    \\\hline
146    \ifLivrableTopLine
147      \ifIsLivrableStarted\else\hline\hline\fi
148    \else
149      \ifIsLivrableStarted\else\end{tabular}\\\livrableTableDef\fi
150    \fi
151    \global\LivrableTopLinefalse
152    \global\IsLivrableStartedtrue
153    %\global\LivrableStartfalse
154    \livrableTableLine%
155        {\textsc{\name}}%
156        {\textsc{T0+##2}}%
157        {\textsc{##3}}%
158        {\textsc{##4}}%
159 }
160 \def\itemL##1##2##3##4##5##6{%
161    \ifIsLivrableStarted
162        %\global\advance\verscnt1
163    \else
164        \global\advance\livrablecnt1
165        %\global\verscnt1
166    \fi
167    \def\vers{VF}
168    \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}%
169    \writeganttinfo{##1}{##2}{##6}{##4}{##5}
170    \\\hline
171    \ifLivrableTopLine
172      \ifIsLivrableStarted\else\hline\hline\fi
173    \else
174      \ifIsLivrableStarted\else\end{tabular}\\\livrableTableDef\fi
175    \fi
176    \global\LivrableTopLinefalse
177    \global\IsLivrableStartedfalse
178    %\global\LivrableStartfalse
179    \livrableTableLine%
180        {\textsc{\name}}%
181        {\textsc{T0+##2}}%
182        {\textsc{##3}}%
183        {\textsc{##4}}%
184 }
185 \def\CoutHorsD##1##2##3##4##5{%
186    \let\xcoach\relax
187    \let\xcoachplus\relax
188    \let\irisa\relax    \let\Sirisa\relax
189    \let\lip\relax      \let\Slip\relax
190    \let\tima\relax     \let\Stima\relax
191    \let\ubs\relax      \let\Subs\relax
192    \let\upmc\relax     \let\Supmc\relax
193    \let\altera\relax   \let\Saltera\relax
194    \let\xilinx\relax   \let\Sxilinx\relax
195    \let\bull\relax     \let\Sbull\relax
196    \let\thales\relax   \let\Sthales\relax
197    \let\zied\relax     \let\Szied\relax
198    \let\navtel\relax   \let\Snavtel\relax
199    \immediate\write\ganttdata{%
200      T=\the\taskcnt\space S=\the\subtaskcnt\space%
201      D=none BM=##1 EM=##2 R=##5 PART={##3} TITLE=##4%
202    }
203 }
204% \begin{small}
205 \livrableTableDef
206 \livrableTableTopLine
207 %\begin{tabular}{|c|c|c|c|p{.55\linewidth}|}\hline%
208 %\makebox[3.5em]{number} & \makebox[1.5em]{date} & type & resp. & description
209}
210{\\\hline\end{tabular}\\%
211%\end{small}\\%
212}
213
214%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
215\catcode`\@=12
216%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracBrowser for help on using the repository browser.