From b0f96e4173a58bd87f58b964649d764ccb28b7d0 Mon Sep 17 00:00:00 2001 From: Loris Date: Fri, 24 Mar 2023 10:39:46 +0100 Subject: [PATCH] independent cell scheduler --- src/main/java/fr/ntr/Main.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/fr/ntr/Main.java b/src/main/java/fr/ntr/Main.java index cd498eb..dee5ce5 100644 --- a/src/main/java/fr/ntr/Main.java +++ b/src/main/java/fr/ntr/Main.java @@ -27,10 +27,12 @@ public class Main { for(int i = 2; i < maximumLoad; i+=2) { List users = generateUsers(i, timeSlotNb, subCarrierNb); ResourceBlock[][] frame = new ResourceBlock[timeSlotNb][subCarrierNb]; - Scheduler scheduler = new MaxSNR(frame, users); + //TODO : changes schedulers + Scheduler schedulerCell1 = new MaxSNR(frame, users); + Scheduler schedulerCell2 = new MaxSNR(frame, users); //TODO : modify cells parameters ? - Cell cell1 = new Cell(scheduler, frame, users, timeSlotNb, subCarrierNb, 0, 50); - Cell cell2 = new Cell(scheduler, frame, users, timeSlotNb, subCarrierNb, 0, 50); + Cell cell1 = new Cell(schedulerCell1, frame, users, timeSlotNb, subCarrierNb, 0, 50); + Cell cell2 = new Cell(schedulerCell2, frame, users, timeSlotNb, subCarrierNb, 0, 50); AccessPoint accessPoint = new AccessPoint(cell1, cell2); accessPoint.startSimulation(numberOfTicks); }