Page 837 - IT2
P. 837

this.numMat=numMat;
                     this.libMat=libMat;
                     this.tarifMat=tarifMat;
                     this.nbrMat=nbrMat;

                     this.necessiter=necessiter;
                     this.seServir=seServir;
                  }}
                   5.  Classe Salle:


               public class Salle {
                  public int numSal;
                  public String libSal;

                  public int capaciteSal;
                  public ArrayList <Seance> seance;
                  public ArrayList <Nature> nature;
                  public Salle(){   }
                  public Salle(numSal, libSal, capaciteSal ){
                     this.numSal=numSal;
                     this.libSal=libSal;
                     this.capaciteSal=capaciteSal;

                     seance = new ArrayList <Seance>();
                     nature = new ArrayList <nature>();
                  }
               class DateSortieException: Exception
                   {
                       public CapacitéException()
                           : base("la capacité d'acceuil ne doit pas etre négative!!!")
                       {
                       }

               }

                  public void addSeance(Seance newSeance) {
                     if (newSeance == null)
                        return;
                     if (this.seance == null)
                        this.seance = new HashTable<Seance>();

                     if (!this.seance.contains(newSeance))
                     {
                      Filière                   Epreuve                        Session              9/15
                  DI (CDS de 2 à 3)       Synthèse V1 (Correction)           Juillet 2016
                                           www.itlearning-settat.com

                                   Email: admission@itlearning-settat.com
                                                    Tél.:0661077812
   832   833   834   835   836   837   838   839   840   841   842