TODO Reuse 3

This commit is contained in:
iboyeau 2023-03-30 09:36:46 +02:00
parent b5525d0462
commit 0794e02a8b
2 changed files with 21 additions and 1 deletions

View File

@ -23,7 +23,7 @@ public class Cell {
/** /**
* Trame * Trame
*/ */
private final ResourceBlock[][] frame; private ResourceBlock[][] frame;
/** /**
* Reste pour la prochaine source * Reste pour la prochaine source
*/ */
@ -78,6 +78,10 @@ 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;
} }

View File

@ -1,6 +1,22 @@
package fr.ntr.Reuse; package fr.ntr.Reuse;
import fr.ntr.Cell;
import fr.ntr.ResourceBlock;
import fr.ntr.User;
import java.util.List;
public class Reuse3 { public class Reuse3 {
//TODO 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);
}
}
} }