Get frame size
This commit is contained in:
parent
1d6308fa84
commit
bf16b8dec8
@ -1,5 +1,6 @@
|
|||||||
package fr.ntr;
|
package fr.ntr;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import fr.ntr.scheduler.Scheduler;
|
import fr.ntr.scheduler.Scheduler;
|
||||||
@ -25,17 +26,19 @@ public class AccessPoint {
|
|||||||
private double leftForNextSource;
|
private double leftForNextSource;
|
||||||
|
|
||||||
|
|
||||||
public AccessPoint(List<User> users, Scheduler scheduler, ResourceBlock[][] frame, double leftForNextSource) {
|
public AccessPoint(Scheduler scheduler) {
|
||||||
this.users = users;
|
this.users = new ArrayList<User>();
|
||||||
this.scheduler = scheduler;
|
this.scheduler = scheduler;
|
||||||
this.frame = frame;
|
this.frame = new ResourceBlock[timeSlotNb][subCarrierNb];
|
||||||
this.leftForNextSource = leftForNextSource;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void startSimulation(int duration){
|
public void startSimulation(int duration){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Génération du débit et des paquets
|
||||||
|
*/
|
||||||
private void init(){
|
private void init(){
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -47,4 +50,8 @@ public class AccessPoint {
|
|||||||
private void reset(){
|
private void reset(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getFrameSize(){
|
||||||
|
return this.timeSlotNb * this.subCarrierNb;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user