Changeset 296


Ignore:
Timestamp:
Dec 16, 2010, 10:20:10 AM (14 years ago)
Author:
coach
Message:

Added effort tables

Location:
anr
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • anr/anr.tex

    r295 r296  
    273273\newpage\section{Staff involvement in other contracts}\input{annexe-autre-participation.tex}
    274274
     275\newpage\section{Effort tables}
     276%\begin{small}
     277\input{effort-par-livrable-1.tex}
     278\newpage
     279\input{effort-par-livrable-2.tex}
     280\newpage
     281\input{effort-par-livrable-3.tex}
     282%\end{small}
     283
    275284\end{document}
    276285
  • anr/gantt.l

    r279 r296  
    658658    pictwidth += PICT_RIGHTSEP;
    659659   
    660     fprintf(curr->os,"\\setlength{\\unitlength}{1.0mm}\n");
     660    fprintf(curr->os,"\\setlength{\\unitlength}{0.9mm}\n");
    661661    fprintf(curr->os,"\\begin{picture}(%.1f,%.1f)\n",pictwidth,pictheight);
    662662    //print_hline(0,0,pictwidth,0);
     
    913913}
    914914
     915#if 1
     916void do_effort_par_livrable(char* filename,int from_task, int to_task)
     917{
     918    //struct partner_def* part;
     919    if ( (curr->os=fopen(filename,"w"))==0 ) {
     920        fprintf(stderr,"can not open %s file for writing.\n",filename);
     921        fprintf(stderr,"generation of %s partner table is skipped.\n",filename);
     922        return;
     923    }
     924    fprintf(curr->os,"\\begin{tabular}{|c|l||c|r|r|r||r|}\\hline\n");
     925    fprintf(curr->os,
     926        "number & \\multicolumn{1}{c||}{title} & part. & \\multicolumn{3}{c||}{years } & total \\\\\\cline{4-6}\n");
     927    fprintf(curr->os,
     928        " & & & \\multicolumn{1}{c|}{1} & \\multicolumn{1}{c|}{2} & "
     929        "\\multicolumn{1}{c||}{3} &  \\\\\\hline\\hline\n");
     930    int tn,stn,dn,partner;
     931    double an1=0,an2=0,an3=0,an=0;
     932    for (tn=0 ; tn<T_MAX ; tn++) {
     933        int livrablenb=0,subtasknb=0;
     934        int task_n,subtask_n;
     935        double  t_sum1=0, t_sum2=0, t_sum3=0, t_sum=0;
     936        double st_sum1=0,st_sum2=0,st_sum3=0,st_sum=0;
     937        if (curr->ls[tn][0][0][0]==0) break;
     938        for (stn=0; stn<S_MAX; stn++) {
     939          st_sum1=st_sum2=st_sum3=st_sum=0;
     940          livrablenb=0;
     941          for (dn=0; dn<D_MAX; dn++) {
     942            int linenb = 0;
     943            Tlivrable* top=curr->ls[tn][stn][dn][0];
     944            if ( top==0 ) break;
     945            if ( !( from_task<=top->tn &&  top->tn<=to_task ) ) break;
     946            double liv1=0,liv2=0,liv3=0,liv=0;
     947            for (partner=1 ; partner_table[partner].key!=0 ; partner+=1) {
     948                Tlivrable *lcurr,*leader;
     949                if ( (lcurr=do_partner_table_getLivrable(&leader,top,partner))==0 )
     950                    continue;
     951                double sum1,sum2,sum3,sum=0;
     952                sum1 = lcurr->hman[0]; sum +=sum1;
     953                sum2 = lcurr->hman[1]; sum +=sum2;
     954                sum3 = lcurr->hman[2]; sum +=sum3;
     955                char label[1000],title[1000];
     956                gen_label_base(label,lcurr);
     957                sprintf(title,"\\resstablestyletitle{%s}",top->title);
     958                fprintf(curr->os,"%10s & %50s & %10s & %2.1f & %2.1f & %2.1f & %2.1f \\\\\\hline\n",
     959                   linenb==0 ? label : "",
     960                   linenb==0 ? title : "",
     961                   partner_table[lcurr->partner].key,
     962                   sum1,sum2,sum3,sum);
     963                linenb += 1;
     964                liv1 += sum1 ; st_sum1 += sum1 ; t_sum1 += sum1 ; an1 += sum1 ;
     965                liv2 += sum2 ; st_sum2 += sum2 ; t_sum2 += sum2 ; an2 += sum2 ;
     966                liv3 += sum3 ; st_sum3 += sum3 ; t_sum3 += sum3 ; an3 += sum3 ;
     967                liv  += sum  ; st_sum  += sum  ; t_sum  += sum  ; an  += sum  ;
     968            }
     969            if (linenb>1)
     970                fprintf(curr->os,"%10s & %50s & %10s & %2.1f & %2.1f & %2.1f & %2.1f \\\\\\hline\n",
     971                    "","","total",liv1,liv2,liv3,liv);
     972            if (linenb>=0) {
     973                livrablenb +=1;
     974                task_n=top->tn;
     975                subtask_n=top->stn;
     976            }
     977          }
     978          if ( livrablenb>0) {
     979                char name[100];
     980                char title[1000];
     981                sprintf(name,"st%d-%d",task_n,subtask_n);
     982                sprintf(title,"\\resstablestyletitle{%s}","");
     983                fprintf(curr->os,"%10s & %50s & %10s & %2.1f & %2.1f & %2.1f & %2.1f \\\\\\hline\n",
     984                    name,title,"total",st_sum1,st_sum2,st_sum3,st_sum);
     985                subtasknb += 1;
     986          }
     987       }
     988       if ( subtasknb>0 ) {
     989                char name[100];
     990                char title[1000];
     991                sprintf(name,"task-%d",task_n);
     992                sprintf(title,"\\resstablestyletitle{%s}",task_names[task_n]);
     993                fprintf(curr->os,"%10s & %50s & %10s & %2.1f & %2.1f & %2.1f & %2.1f \\\\\\hline\\hline\n",
     994                    name,title,"total",t_sum1,t_sum2,t_sum3,t_sum);
     995       }
     996    }
     997    fprintf(curr->os,"\\end{tabular}\n");
     998    fclose(curr->os);
     999    curr->os=0;
     1000}
     1001#endif
     1002
    9151003int main()
    9161004{
     
    9431031    prepare3(curr);
    9441032    do_livrable_tables(40);
     1033
     1034    curr = data_new(0,0);
     1035    prepare0(curr);
     1036    prepare1(curr);
     1037    prepare2(curr);
     1038    prepare3(curr);
     1039    do_effort_par_livrable("effort-par-livrable-1.tex",1,3);
     1040    do_effort_par_livrable("effort-par-livrable-2.tex",4,7);
     1041    do_effort_par_livrable("effort-par-livrable-3.tex",8,8);
    9451042    return 0;
    9461043}
  • anr/task-csg.tex

    r291 r296  
    5050\subtask{Implementation of CSG}
    5151    \begin{livrable}
    52     \itemV{0}{12}{x}{\Supmc}{CSG tool}
     52    \itemV{0}{12}{x}{\Supmc}{CSG}
    5353        The first software release of the CSG tool that will allow demonstrators to start
    5454        working by using the neutral architectural template only for SystemC.
  • anr/task-management.tex

    r291 r296  
    2929        organization, the writing of the review reports.
    3030    \itemL{0}{36}{}{\Smds}{Local project management}{.5:.5:.5}
    31         \OtherPartner{0}{36}{\Supmc}{.5:.5:.5}
    32         \OtherPartner{0}{36}{\Subs} {.5:.5:.5}
    33         \OtherPartner{0}{36}{\Stima}{.5:.5:.5}
    34         \OtherPartner{0}{36}{\Slip} {.5:.5:.5}
     31        \OtherPartner{0}{36}{\Supmc}  {.5:.5:.5}
     32        \OtherPartner{0}{36}{\Subs}   {.5:.5:.5}
     33        \OtherPartner{0}{36}{\Stima}  {.5:.5:.5}
     34        \OtherPartner{0}{36}{\Slip}   {.5:.5:.5}
    3535        \OtherPartner{0}{36}{\Sirisa} {.5:.5:.5}
    36         \OtherPartner{0}{36}{\Sthales} {.5:.5:.5}
    37         \OtherPartner{0}{36}{\Sbull} {.5:.5:.5}
     36        \OtherPartner{0}{36}{\Sthales}{.5:.5:.5}
     37        \OtherPartner{0}{36}{\Sbull}  {.5:.5:.5}
    3838        Project management at the partner level. It includes mainly the progress
    3939        monitoring, the record keeping the participation to the project meetings
Note: See TracChangeset for help on using the changeset viewer.