few warning suppression
This commit is contained in:
parent
5572ae7aab
commit
b76c836ca4
@ -7,11 +7,11 @@ import java.util.Random;
|
||||
|
||||
public class Cell {
|
||||
|
||||
private List<User> users;
|
||||
private final List<User> users;
|
||||
/**
|
||||
* scheduler utilisé par la cellule
|
||||
*/
|
||||
private Scheduler scheduler;
|
||||
private final Scheduler scheduler;
|
||||
/**
|
||||
* Nombre de slots
|
||||
*/
|
||||
@ -23,7 +23,7 @@ public class Cell {
|
||||
/**
|
||||
* Trame
|
||||
*/
|
||||
private ResourceBlock[][] frame;
|
||||
private final ResourceBlock[][] frame;
|
||||
/**
|
||||
* Reste pour la prochaine source
|
||||
*/
|
||||
|
@ -12,7 +12,7 @@ public class User {
|
||||
private final List<Packets> packetsSent;
|
||||
private int leftForNextSource;
|
||||
|
||||
private Random random = new Random();
|
||||
private final Random random = new Random();
|
||||
|
||||
public User(double distance, int timeSlotNb, int subCarrierNb) {
|
||||
this.distance = distance;
|
||||
@ -38,9 +38,9 @@ public class User {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param m
|
||||
* @param m un truc
|
||||
* @param ticks qui va définir le temps auquel a été créé un paquet
|
||||
* @return
|
||||
* @return mbis
|
||||
*/
|
||||
public int createPackets(int m, int ticks) {
|
||||
Random random = new Random();
|
||||
|
@ -6,8 +6,8 @@ import fr.ntr.User;
|
||||
|
||||
public class MaxSNR extends Scheduler {
|
||||
|
||||
private List<User> users;
|
||||
private ResourceBlock[][] frame;
|
||||
private final List<User> users;
|
||||
private final ResourceBlock[][] frame;
|
||||
|
||||
public MaxSNR( ResourceBlock[][] frame, List<User> users) {
|
||||
this.frame = frame;
|
||||
@ -16,7 +16,7 @@ public class MaxSNR extends Scheduler {
|
||||
|
||||
@Override
|
||||
public void scheduling() {
|
||||
User userMax = null;
|
||||
User userMax;
|
||||
for(int ts = 0; ts < 2; ts++){
|
||||
for(int sp = 0; sp < 100; sp++){
|
||||
userMax = selectionUtilisateur(sp, ts, users);
|
||||
|
@ -7,9 +7,9 @@ import fr.ntr.User;
|
||||
|
||||
public class ProportionalFair extends Scheduler {
|
||||
|
||||
private String name;
|
||||
private List<User> users;
|
||||
private ResourceBlock[][] frame;
|
||||
private final String name;
|
||||
private final List<User> users;
|
||||
private final ResourceBlock[][] frame;
|
||||
|
||||
public ProportionalFair(String name, ResourceBlock[][] frame, List<User> users) {
|
||||
this.name = name;
|
||||
|
Reference in New Issue
Block a user