conflit 1
This commit is contained in:
parent
ad8b56454c
commit
57b477a578
@ -11,17 +11,8 @@ public class MaxSNR extends Scheduler {
|
||||
public void scheduling() {
|
||||
}
|
||||
|
||||
private User selectionUtilisateur(int Ts, int Sp, List<User> Users) {
|
||||
User selectedUser = null;
|
||||
double maxSNR= 0;
|
||||
for (User user : Users) {
|
||||
double snr = ;
|
||||
if (snr > maxSNR) {
|
||||
maxSNR = snr;
|
||||
selectedUser = user;
|
||||
}
|
||||
}
|
||||
return selectedUser;
|
||||
private void selectionUtilisateur(List<User> Users) {
|
||||
for(User u: Users)
|
||||
}
|
||||
|
||||
public MaxSNR(String name) {
|
||||
|
@ -27,7 +27,7 @@ public class RoundRobin extends Scheduler {
|
||||
* Entry Time slot (int), Sous porteuse(int), and users ( List<User>)
|
||||
* Return the user in function of TS and SP selected
|
||||
*/
|
||||
private UserGroup UserSelection(int Ts, int Sp, List<UserGroup> Users) {
|
||||
private UserGroup UserSelection(int Ts, int Sp, UserGroup Users) {
|
||||
for (int i = 0; i < Ts; i++) {
|
||||
for (int j = 0; j < Sp; j++) {
|
||||
index++;
|
||||
|
Reference in New Issue
Block a user