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

58 lines
1.0 KiB
Java
Raw Normal View History

2023-03-03 10:38:35 +01:00
package fr.ntr;
2023-03-03 12:12:18 +01:00
import java.util.ArrayList;
2023-03-03 11:28:16 +01:00
import java.util.List;
import fr.ntr.scheduler.Scheduler;
2023-03-03 10:38:35 +01:00
public class AccessPoint {
2023-03-03 11:28:16 +01:00
private List<User> users;
private Scheduler scheduler;
2023-03-03 11:47:53 +01:00
/**
* 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;
2023-03-03 11:28:16 +01:00
2023-03-03 12:12:18 +01:00
public AccessPoint(Scheduler scheduler) {
this.users = new ArrayList<User>();
2023-03-03 11:28:16 +01:00
this.scheduler = scheduler;
2023-03-03 12:12:18 +01:00
this.frame = new ResourceBlock[timeSlotNb][subCarrierNb];
2023-03-03 11:28:16 +01:00
}
public void startSimulation(int duration){
}
2023-03-03 12:12:18 +01:00
/**
* Génération du débit et des paquets
*/
2023-03-03 11:28:16 +01:00
private void init(){
2023-03-03 12:12:18 +01:00
2023-03-03 11:28:16 +01:00
}
private void dataAnalysis(){
}
private void reset(){
}
2023-03-03 12:12:18 +01:00
public int getFrameSize(){
return this.timeSlotNb * this.subCarrierNb;
}
2023-03-03 10:38:35 +01:00
}