maj client
This commit is contained in:
@@ -2,9 +2,9 @@ public class Restaurant {
|
||||
protected final int MAX_CLIENTS = 25;
|
||||
private int nbClient;
|
||||
|
||||
private Compartiment[] buffet = new Compartiment[4];
|
||||
public Compartiment[] buffet = new Compartiment[4];
|
||||
private Employe_du_buffet employeB;
|
||||
private Stand_de_cuisson stand_de_cuisson;
|
||||
public Stand_de_cuisson stand_de_cuisson;
|
||||
private Cuisinier cuisinier;
|
||||
|
||||
Restaurant(){
|
||||
@@ -35,8 +35,9 @@ public class Restaurant {
|
||||
}
|
||||
|
||||
public synchronized void diminuerClient(){
|
||||
if(nbClient<MAX_CLIENTS){
|
||||
nbClient++;
|
||||
if(nbClient>MAX_CLIENTS){
|
||||
nbClient--;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user