update
This commit is contained in:
parent
0794e02a8b
commit
b2862c9a9f
@ -48,8 +48,8 @@ public class AccessPoint {
|
|||||||
List<Cell> cellList = null;
|
List<Cell> cellList = null;
|
||||||
cellList.add(cell1);
|
cellList.add(cell1);
|
||||||
cellList.add(cell2);
|
cellList.add(cell2);
|
||||||
Reuse1.BandwithReuse1(cellList,ticks);
|
cell1.updateBandwidth(ticks);
|
||||||
//Reuse3.BandwithReuse3(cellList,ticks);
|
cell2.updateBandwidth(ticks);
|
||||||
cell1.schedule();
|
cell1.schedule();
|
||||||
cell2.schedule();
|
cell2.schedule();
|
||||||
|
|
||||||
|
@ -78,10 +78,6 @@ public class Cell {
|
|||||||
return frame;
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFrameSize(ResourceBlock[][] frame) {
|
|
||||||
this.frame=frame;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static int getTimeSlotNb() {
|
public static int getTimeSlotNb() {
|
||||||
return timeSlotNb;
|
return timeSlotNb;
|
||||||
}
|
}
|
||||||
|
@ -27,11 +27,15 @@ public class Main {
|
|||||||
int subCarrierNb = 100;
|
int subCarrierNb = 100;
|
||||||
for(int i = 2; i < maximumLoad; i += 2) {
|
for(int i = 2; i < maximumLoad; i += 2) {
|
||||||
List<User> users = generateUsers(i, timeSlotNb, subCarrierNb);
|
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
|
//TODO : changes schedulers
|
||||||
Scheduler schedulerCell1 = new MaxSNR(frame, users);
|
Scheduler schedulerCell1 = new MaxSNR(frame, users);
|
||||||
Scheduler schedulerCell2 = new MaxSNR(frame, users);
|
Scheduler schedulerCell2 = new MaxSNR(frame, users);
|
||||||
//TODO : modify cells parameters ?
|
//TODO : modify cells parameters ?
|
||||||
|
|
||||||
Cell cell1 = new Cell(schedulerCell1, 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);
|
Cell cell2 = new Cell(schedulerCell2, frame, users, timeSlotNb, subCarrierNb, 0, 50);
|
||||||
AccessPoint accessPoint = new AccessPoint(cell1, cell2);
|
AccessPoint accessPoint = new AccessPoint(cell1, cell2);
|
||||||
|
@ -7,15 +7,9 @@ import java.util.List;
|
|||||||
|
|
||||||
public class Reuse3 {
|
public class Reuse3 {
|
||||||
|
|
||||||
//TODO Reuse3
|
|
||||||
|
|
||||||
|
|
||||||
public static void BandwithReuse3(List<Cell> cellList, int tick) {
|
public static void BandwithReuse3(List<Cell> cellList, int tick) {
|
||||||
for (Cell cell : cellList) {
|
for (Cell cell : cellList) {
|
||||||
|
|
||||||
//TODO set size
|
|
||||||
//cell.setFrameSize(cellList.size());
|
|
||||||
|
|
||||||
cell.updateBandwidth(tick);
|
cell.updateBandwidth(tick);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user