From 262f50ca49f45388d0cc7ff16445e1a698a0a2e4 Mon Sep 17 00:00:00 2001 From: Remi Boure Date: Fri, 3 Mar 2023 11:28:16 +0100 Subject: [PATCH] AccessPoint skeleton --- src/main/java/fr/ntr/AccessPoint.java | 34 +++++++++++++++++++ ...{RessourceUnit.java => ResourceBlock.java} | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) rename src/main/java/fr/ntr/{RessourceUnit.java => ResourceBlock.java} (74%) 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; }