test
This commit is contained in:
@@ -58,6 +58,6 @@ public class Client extends Thread {
|
||||
}
|
||||
|
||||
public void cuir_au_stand(Stand_de_cuisson stand){
|
||||
//stand.
|
||||
stand.ajouter_client(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user