From 5c533d37cc87a1334c64ae1372322ab946ae8f93 Mon Sep 17 00:00:00 2001 From: iboyeau Date: Tue, 28 Mar 2023 08:21:38 +0200 Subject: [PATCH] acces point maj --- src/main/java/fr/ntr/AccessPoint.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/main/java/fr/ntr/AccessPoint.java b/src/main/java/fr/ntr/AccessPoint.java index 736a2aa..71a6a59 100644 --- a/src/main/java/fr/ntr/AccessPoint.java +++ b/src/main/java/fr/ntr/AccessPoint.java @@ -48,21 +48,21 @@ public class AccessPoint { cell1.schedule(); cell2.schedule(); // traite les données et les enregistre dans un fichier - /* - try { + + /* try { analyseData(ticks); } catch (IOException e) { System.out.println("Can't export data"); - } - */ + }*/ + } } - /* +/* private void analyseData(int tick) throws IOException { - for(int i = 0; i < frame.length; i++) { - for(int j = 0; j < frame[i].length; j++) { - ResourceBlock ur = frame[i][j]; + for(int i = 0; i < cell1.getFrame().length; i++) { + for(int j = 0; j < cell1.getFrame()[i].length; j++) { + ResourceBlock ur = cell1.getFrame()[i][j]; if(ur.getUser() != null) { String data = (tick + ";" + i + ";" + j + ";" + this.users.indexOf(ur.getUser()) + ";" + ur.getBandwidth() + ";\n"); try{ @@ -76,6 +76,5 @@ public class AccessPoint { } } } -*/ - + */ }