diff --git a/src/main/java/fr/ntr/AccessPoint.java b/src/main/java/fr/ntr/AccessPoint.java index 72d19bc..5cc5066 100644 --- a/src/main/java/fr/ntr/AccessPoint.java +++ b/src/main/java/fr/ntr/AccessPoint.java @@ -1,4 +1,38 @@ package fr.ntr; +import java.util.List; + +import fr.ntr.scheduler.Scheduler; + public class AccessPoint { + private List users; + private Scheduler scheduler; + private static int timeSlotNb; // nombre de slots + private static int subCarrierNb; // nombre de sous-porteuses + private ResourceBlock[][] frame; // trame + private double leftForNextSource; // reste pour la prochaine source + + + public AccessPoint(List users, Scheduler scheduler, ResourceBlock[][] frame, double leftForNextSource) { + this.users = users; + this.scheduler = scheduler; + this.frame = frame; + this.leftForNextSource = leftForNextSource; + } + + public void startSimulation(int duration){ + + } + + private void init(){ + + } + + private void dataAnalysis(){ + + } + + private void reset(){ + + } } diff --git a/src/main/java/fr/ntr/RessourceUnit.java b/src/main/java/fr/ntr/ResourceBlock.java similarity index 74% rename from src/main/java/fr/ntr/RessourceUnit.java rename to src/main/java/fr/ntr/ResourceBlock.java index bdd8b0c..ec0bc6d 100644 --- a/src/main/java/fr/ntr/RessourceUnit.java +++ b/src/main/java/fr/ntr/ResourceBlock.java @@ -4,7 +4,7 @@ public class ResourceBlock { private User user; private double bandwith; - private ResourceBlock (User user, double bandwith) { + public ResourceBlock (User user, double bandwith) { this.user = user; this.bandwith = bandwith; }