acces point maj
This commit is contained in:
parent
b76c836ca4
commit
5c533d37cc
@ -48,21 +48,21 @@ public class AccessPoint {
|
|||||||
cell1.schedule();
|
cell1.schedule();
|
||||||
cell2.schedule();
|
cell2.schedule();
|
||||||
// traite les données et les enregistre dans un fichier
|
// traite les données et les enregistre dans un fichier
|
||||||
/*
|
|
||||||
try {
|
/* try {
|
||||||
analyseData(ticks);
|
analyseData(ticks);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
System.out.println("Can't export data");
|
System.out.println("Can't export data");
|
||||||
}
|
}*/
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
private void analyseData(int tick) throws IOException {
|
private void analyseData(int tick) throws IOException {
|
||||||
for(int i = 0; i < frame.length; i++) {
|
for(int i = 0; i < cell1.getFrame().length; i++) {
|
||||||
for(int j = 0; j < frame[i].length; j++) {
|
for(int j = 0; j < cell1.getFrame()[i].length; j++) {
|
||||||
ResourceBlock ur = frame[i][j];
|
ResourceBlock ur = cell1.getFrame()[i][j];
|
||||||
if(ur.getUser() != null) {
|
if(ur.getUser() != null) {
|
||||||
String data = (tick + ";" + i + ";" + j + ";" + this.users.indexOf(ur.getUser()) + ";" + ur.getBandwidth() + ";\n");
|
String data = (tick + ";" + i + ";" + j + ";" + this.users.indexOf(ur.getUser()) + ";" + ur.getBandwidth() + ";\n");
|
||||||
try{
|
try{
|
||||||
@ -77,5 +77,4 @@ public class AccessPoint {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user