diff --git a/src/main/java/fr/ntr/AccessPoint.java b/src/main/java/fr/ntr/AccessPoint.java index 6433a96..ce47e14 100644 --- a/src/main/java/fr/ntr/AccessPoint.java +++ b/src/main/java/fr/ntr/AccessPoint.java @@ -1,5 +1,6 @@ package fr.ntr; +import java.util.ArrayList; import java.util.List; import fr.ntr.scheduler.Scheduler; @@ -25,19 +26,21 @@ public class AccessPoint { private double leftForNextSource; - public AccessPoint(List users, Scheduler scheduler, ResourceBlock[][] frame, double leftForNextSource) { - this.users = users; + public AccessPoint(Scheduler scheduler) { + this.users = new ArrayList(); 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(){ - + } private void dataAnalysis(){ @@ -47,4 +50,8 @@ public class AccessPoint { private void reset(){ } + + public int getFrameSize(){ + return this.timeSlotNb * this.subCarrierNb; + } }