Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
8880bca3d5
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user