This commit is contained in:
Minh VU
2024-12-02 15:52:43 +01:00
parent 99198760bb
commit 05d1859f81
3 changed files with 5 additions and 5 deletions

View File

@@ -58,6 +58,6 @@ public class Client extends Thread {
}
public void cuir_au_stand(Stand_de_cuisson stand){
//stand.
stand.ajouter_client(this);
}
}

View File

@@ -1,11 +1,7 @@
import java.util.ArrayList;
public class Restaurant {
protected final int MAX_CLIENTS = 25;
private int nbClient;
private ArrayList<Client> clients_stand = new ArrayList<Client>();
private Compartiment[] buffet = new Compartiment[4];
private Employe_du_buffet employeB;

View File

@@ -16,4 +16,8 @@ public class Stand_de_cuisson {
public synchronized void finir_cuit(Client client){
notifyAll();
}
public synchronized void ajouter_client(Client client){
clients.add(client);
}
}