Merge remote-tracking branch 'origin/master'

This commit is contained in:
Loris 2023-03-17 10:46:10 +01:00
commit 8880bca3d5

View File

@ -1,18 +1,28 @@
package fr.ntr.scheduler;
import java.util.List;
import fr.ntr.ResourceBlock;
import fr.ntr.User;
public class MaxSNR extends Scheduler {
private List<User> users;
private ResourceBlock[][] frame;
@Override
public void scheduling() {
User userMax = null;
for(int ts = 0; ts < 2; ts++){
for(int sp = 0; sp < 100; sp++){
userMax = selectionUtilisateur(sp, ts, users);
if (userMax.getPacketsToSend() == null) {
users.remove(userMax);
}else{
//sub the packet send need Set packet
userMax.getPacketsToSend();
}
frame[ts][sp].setUser(selectionUtilisateur(sp, ts, users));
}
}
}