fixed comparison in computeInterference

This commit is contained in:
Loris 2023-03-30 06:30:37 +02:00
parent 21ae722975
commit f6407b1584
2 changed files with 4 additions and 4 deletions

View File

@ -12,8 +12,8 @@ import fr.ntr.scheduler.Scheduler;
public class AccessPoint { public class AccessPoint {
private Cell cell1; private final Cell cell1;
private Cell cell2; private final Cell cell2;
private List<User> users; private List<User> users;
private FileOutputStream outputDataFile; private FileOutputStream outputDataFile;
@ -75,7 +75,7 @@ public class AccessPoint {
double bandwidth1 = frameCell1[k][l].getBandwidth(); double bandwidth1 = frameCell1[k][l].getBandwidth();
double bandwidth2 = frameCell2[k][l].getBandwidth(); double bandwidth2 = frameCell2[k][l].getBandwidth();
//User proche //User proche
if (user1.getDistance() > 200d) { if (user1.getDistance() < 200d) {
frameCell1[k][l].setBandwidth(bandwidth1 / 2); frameCell1[k][l].setBandwidth(bandwidth1 / 2);
frameCell2[k][l].setBandwidth(bandwidth2 / 2); frameCell2[k][l].setBandwidth(bandwidth2 / 2);
} }