independent cell scheduler

This commit is contained in:
Loris 2023-03-24 10:39:46 +01:00
parent 98a1222f71
commit b0f96e4173

View File

@ -27,10 +27,12 @@ public class Main {
for(int i = 2; i < maximumLoad; i+=2) {
List<User> 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);
}