This commit is contained in:
iboyeau 2023-03-30 09:53:41 +02:00
parent 0794e02a8b
commit b2862c9a9f
4 changed files with 7 additions and 13 deletions

View File

@ -48,8 +48,8 @@ public class AccessPoint {
List<Cell> cellList = null;
cellList.add(cell1);
cellList.add(cell2);
Reuse1.BandwithReuse1(cellList,ticks);
//Reuse3.BandwithReuse3(cellList,ticks);
cell1.updateBandwidth(ticks);
cell2.updateBandwidth(ticks);
cell1.schedule();
cell2.schedule();

View File

@ -78,10 +78,6 @@ public class Cell {
return frame;
}
public void setFrameSize(ResourceBlock[][] frame) {
this.frame=frame;
}
public static int getTimeSlotNb() {
return timeSlotNb;
}

View File

@ -27,11 +27,15 @@ public class Main {
int subCarrierNb = 100;
for(int i = 2; i < maximumLoad; i += 2) {
List<User> users = generateUsers(i, timeSlotNb, subCarrierNb);
ResourceBlock[][] frame = new ResourceBlock[timeSlotNb][subCarrierNb];
//TODO reuse choise
ResourceBlock[][] frame = new ResourceBlock[timeSlotNb/2][subCarrierNb];
//TODO : changes schedulers
Scheduler schedulerCell1 = new MaxSNR(frame, users);
Scheduler schedulerCell2 = new MaxSNR(frame, users);
//TODO : modify cells parameters ?
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);

View File

@ -7,15 +7,9 @@ import java.util.List;
public class Reuse3 {
//TODO Reuse3
public static void BandwithReuse3(List<Cell> cellList, int tick) {
for (Cell cell : cellList) {
//TODO set size
//cell.setFrameSize(cellList.size());
cell.updateBandwidth(tick);
}
}