Page 862 - IT2
P. 862

this.necessiter=necessiter;
                     this.seServir=seServir;
                  }
               }



                   5.  Classe Atelier:


                   public class Atelier {
                      public int numAte;
                      public String libAte;
                      public int capaciteAte;

                      public ArrayList <TP> ListeTP;
                      public ArrayList <Nature> Listenature;
                      public Atelier(){   }
                      public Atelier(numSal, libSal, capaciteSal ){
                         this.numSal=numSal;
                         this.libSal=libSal;
                         this.capaciteSal=capaciteSal;
                         ListeTP = new ArrayList <TP>();

                         Listenature = new ArrayList <nature>();
                      }

                      class CapacitéException: Exception
                          {
                              public CapacitéException()
                                  : base("la capacité d'acceuil ne doit pas etre négative!!!")
                              {
                              }

                      }
                         public void addTP(TP newTP) {
                            if (newTP == null)
                               return;
                            if (this.TP == null)
                               this.TP = new HashTable<TP>();
                            if (!this.TP.contains(newTP))

                            {
                               this.TP.add(newTP);
                      Filière                   Epreuve                        Session              9/15
                  DI (CDS de 2 à 3)       Synthèse V2(Correction)            Juillet 2016
                                           www.itlearning-settat.com

                                   Email: admission@itlearning-settat.com
                                                    Tél.:0661077812
   857   858   859   860   861   862   863   864   865   866   867