suppression Employe + impl Employe du buffet
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
public class Restaurant {
|
||||
protected final int MAX_CLIENTS = 25;
|
||||
private int nbClient = 0;
|
||||
private int nbClient;
|
||||
|
||||
private Compartiment[] buffet = new Compartiment[4];
|
||||
private Employe_du_buffet employeB;
|
||||
|
||||
private Compartiment compPoisson = new Compartiment();
|
||||
private Compartiment compViande = new Compartiment();
|
||||
private Compartiment compLegume = new Compartiment();
|
||||
private Compartiment compNouille = new Compartiment();
|
||||
|
||||
Employe_du_buffet employeB = new Employe_du_buffet(compPoisson,compViande,compLegume,compNouille);
|
||||
Restaurant(){
|
||||
nbClient = 0;
|
||||
for(int i = 0 ; i<buffet.length; i++){
|
||||
this.buffet[i] = new Compartiment();
|
||||
}
|
||||
employeB = new Employe_du_buffet(buffet);
|
||||
}
|
||||
|
||||
public synchronized boolean libre(){
|
||||
if(nbClient>MAX_CLIENTS){
|
||||
|
||||
Reference in New Issue
Block a user