diff --git a/src/main/java/fr/ntr/Main.java b/src/main/java/fr/ntr/Main.java index eb99408..21922b1 100644 --- a/src/main/java/fr/ntr/Main.java +++ b/src/main/java/fr/ntr/Main.java @@ -28,7 +28,7 @@ public class Main { List users = generateUsers(20, timeSlotNb, subCarrierNb); //TODO : generate users ResourceBlock[][] frame = new ResourceBlock[timeSlotNb][subCarrierNb]; - Scheduler scheduler = new RoundRobin("round robin", 0, frame); + Scheduler scheduler = new RoundRobin("round robin", 0, frame, users); AccessPoint accessPoint = new AccessPoint(scheduler, frame, users, timeSlotNb, subCarrierNb, 0, 50); accessPoint.startSimulation(numberOfTicks, maximumLoad); } diff --git a/src/main/java/fr/ntr/scheduler/RoundRobin.java b/src/main/java/fr/ntr/scheduler/RoundRobin.java index b70b8ed..f5dd855 100644 --- a/src/main/java/fr/ntr/scheduler/RoundRobin.java +++ b/src/main/java/fr/ntr/scheduler/RoundRobin.java @@ -15,10 +15,11 @@ public class RoundRobin extends Scheduler { private List users; private ResourceBlock[][] frame; - public RoundRobin(String name, int index, ResourceBlock[][] frame) { + public RoundRobin(String name, int index, ResourceBlock[][] frame, List users) { this.name = name; this.index = index; this.frame = frame; + this.users = users; } /**