suppression Employe + impl Employe du buffet
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
public class Employe_du_buffet extends Employe{
|
||||
public class Employe_du_buffet extends Thread{
|
||||
|
||||
public Compartiment[] buffet;
|
||||
|
||||
private Compartiment compPoisson;
|
||||
private Compartiment compViande;
|
||||
private Compartiment compLegume;
|
||||
private Compartiment compNouille;
|
||||
|
||||
Employe_du_buffet(Compartiment compPoisson,Compartiment compViande,Compartiment compLegume,Compartiment compNouille){
|
||||
this.compPoisson = compPoisson;
|
||||
this.compViande = compViande;
|
||||
this.compLegume = compViande;
|
||||
this.compNouille = compNouille;
|
||||
Employe_du_buffet(Compartiment[] buffet){
|
||||
this.buffet = buffet;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void run(){
|
||||
while(true){
|
||||
for(int i = 0; i<buffet.length;i++){
|
||||
if(buffet[i].getQuantite()<100){
|
||||
buffet[i].remplir();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user