Get frame size

This commit is contained in:
Remi Boure 2023-03-03 12:12:18 +01:00
parent 1d6308fa84
commit bf16b8dec8

View File

@ -1,5 +1,6 @@
package fr.ntr;
import java.util.ArrayList;
import java.util.List;
import fr.ntr.scheduler.Scheduler;
@ -25,17 +26,19 @@ public class AccessPoint {
private double leftForNextSource;
public AccessPoint(List<User> users, Scheduler scheduler, ResourceBlock[][] frame, double leftForNextSource) {
this.users = users;
public AccessPoint(Scheduler scheduler) {
this.users = new ArrayList<User>();
this.scheduler = scheduler;
this.frame = frame;
this.leftForNextSource = leftForNextSource;
this.frame = new ResourceBlock[timeSlotNb][subCarrierNb];
}
public void startSimulation(int duration){
}
/**
* Génération du débit et des paquets
*/
private void init(){
}
@ -47,4 +50,8 @@ public class AccessPoint {
private void reset(){
}
public int getFrameSize(){
return this.timeSlotNb * this.subCarrierNb;
}
}