maj MAXSnr
This commit is contained in:
parent
254dbefde5
commit
e89eefa529
@ -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