Re compute interference and change distances
This commit is contained in:
parent
7831bc2d2b
commit
be9dd99b39
@ -32,7 +32,7 @@ public class AccessPoint {
|
||||
cell1.schedule(ticks);
|
||||
cell2.schedule(ticks);
|
||||
//simulation des interférences
|
||||
// computeInterference();
|
||||
computeInterference();
|
||||
// traite les données et les enregistre dans un fichier
|
||||
try {
|
||||
cell1.analyseData(ticks, users);
|
||||
@ -48,7 +48,7 @@ public class AccessPoint {
|
||||
ResourceBlock[][] frameCell1 = cell1.getFrame();
|
||||
ResourceBlock[][] frameCell2 = cell2.getFrame();
|
||||
|
||||
for (int k = 0; k < frameCell1.length; k++ ) {
|
||||
for (int k = 0; k < frameCell1.length; k++) {
|
||||
for (int l = 0; l < frameCell1[k].length; l++) {
|
||||
//interférences si les deux cellules parlent au même UE sur le même time slot
|
||||
User user1 = frameCell1[k][l].getUser();
|
||||
|
@ -90,7 +90,7 @@ public class Main {
|
||||
private static List<User> generateUsers(int nbUsers, int timeSlotNb, int subCarrierNb) {
|
||||
List<User> users = new ArrayList<>();
|
||||
// 2 groupes d'utilisateurs, proches et éloignés
|
||||
double[] distance = { 200d, 400d };
|
||||
double[] distance = { 150d, 400d };
|
||||
for (double v : distance) {
|
||||
for (int j = 0; j < nbUsers; j++) {
|
||||
User user = new User(v, timeSlotNb, subCarrierNb);
|
||||
|
Reference in New Issue
Block a user