AccessPoint skeleton

This commit is contained in:
Remi Boure 2023-03-03 11:28:16 +01:00
parent 36c5d7ca20
commit 262f50ca49
2 changed files with 35 additions and 1 deletions

View File

@ -1,4 +1,38 @@
package fr.ntr;
import java.util.List;
import fr.ntr.scheduler.Scheduler;
public class AccessPoint {
private List<User> 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<User> 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(){
}
}

View File

@ -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;
}