37 lines
709 B
Java
37 lines
709 B
Java
package fr.ntr;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class User {
|
|
|
|
private final double distance;
|
|
private final double[][] bandwidthTable;
|
|
private final List<Packets> packetsToSend;
|
|
private final List<Packets> packetsSent;
|
|
|
|
public User(double distance) {
|
|
this.distance = distance;
|
|
this.bandwidthTable = new double[1][1]; // TODO: 03/03/2023 Changer valeurs
|
|
this.packetsToSend = new ArrayList<>();
|
|
this.packetsSent = new ArrayList<>();
|
|
|
|
}
|
|
|
|
public void generateBandwidth() {
|
|
|
|
}
|
|
|
|
public void createPackets() {
|
|
|
|
}
|
|
|
|
/**
|
|
* calculDélai
|
|
*/
|
|
public double calculateLatency() {
|
|
return 0d;
|
|
}
|
|
|
|
}
|