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