Modifying bandwith of the user when interference
This commit is contained in:
parent
6ce0e63e9c
commit
7620459a40
@ -76,13 +76,13 @@ public class AccessPoint {
|
||||
double bandwidth2 = frameCell2[k][l].getBandwidth();
|
||||
//User proche
|
||||
if (user1.getDistance() > 200d) {
|
||||
frameCell1[k][l].setBandwidth(bandwidth1 / 2);
|
||||
frameCell2[k][l].setBandwidth(bandwidth2 / 2);
|
||||
frameCell1[k][l].getUser().getBandwidthTable()[k][l] = bandwidth1 / 2;
|
||||
frameCell2[k][l].getUser().getBandwidthTable()[k][l] = bandwidth2 / 2;
|
||||
}
|
||||
//User loin
|
||||
else {
|
||||
frameCell1[k][l].setBandwidth(bandwidth1 / 4);
|
||||
frameCell2[k][l].setBandwidth(bandwidth2 / 4);
|
||||
frameCell1[k][l].getUser().getBandwidthTable()[k][l] = bandwidth1 / 4;
|
||||
frameCell2[k][l].getUser().getBandwidthTable()[k][l] = bandwidth2 / 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user