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