Update Capteur -> CanalAsync in Afficheur.java

This commit is contained in:
tuanvu
2025-11-10 10:14:08 +01:00
parent 2c2d79bc52
commit 3a1f73170f
8 changed files with 14 additions and 31 deletions

View File

@@ -21,8 +21,8 @@ public class Canal implements ObserverDeCapteurAsync, CapteurAsync {
//AO1 - proxy
@Override
public Future<?> update(Capteur c) {
return scheduler.enquete(new UpdateReq(capteur,afficher),new Random().nextInt(1000)+500);
public Future<?> update() {
return scheduler.enquete(new UpdateReq(this,afficher),new Random().nextInt(1000)+500);
}
//AO2 - proxy