58 lines
1.0 KiB
Java
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;
|
|
}
|
|
}
|