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);
|
||||
|
@ -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