This repository has been archived on 2023-08-28. You can view files and clone it, but cannot push or open issues or pull requests.
ntr-interferences/src/main/java/fr/ntr/AccessPoint.java
2023-03-03 12:12:18 +01:00

58 lines
1.0 KiB
Java

package fr.ntr;
import java.util.ArrayList;
import java.util.List;
import fr.ntr.scheduler.Scheduler;
public class AccessPoint {
private List<User> users;
private Scheduler scheduler;
/**
* nombre de slots
*/
private static int timeSlotNb;
/**
* nombre de sous-porteuses
*/
private static int subCarrierNb;
/**
* trame
*/
private ResourceBlock[][] frame;
/**
* reste pour la prochaine source
*/
private double leftForNextSource;
public AccessPoint(Scheduler scheduler) {
this.users = new ArrayList<User>();
this.scheduler = scheduler;
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(){
}
private void reset(){
}
public int getFrameSize(){
return this.timeSlotNb * this.subCarrierNb;
}
}