AccessPoint skeleton
This commit is contained in:
parent
36c5d7ca20
commit
262f50ca49
@ -1,4 +1,38 @@
|
|||||||
package fr.ntr;
|
package fr.ntr;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import fr.ntr.scheduler.Scheduler;
|
||||||
|
|
||||||
public class AccessPoint {
|
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(){
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ public class ResourceBlock {
|
|||||||
private User user;
|
private User user;
|
||||||
private double bandwith;
|
private double bandwith;
|
||||||
|
|
||||||
private ResourceBlock (User user, double bandwith) {
|
public ResourceBlock (User user, double bandwith) {
|
||||||
this.user = user;
|
this.user = user;
|
||||||
this.bandwith = bandwith;
|
this.bandwith = bandwith;
|
||||||
}
|
}
|
Reference in New Issue
Block a user