This repository has been archived on 2023-08-28. You can view files and clone it, but cannot push or open issues or pull requests.
ntr-interferences/src/main/java/fr/ntr/User.java

37 lines
709 B
Java
Raw Normal View History

2023-03-03 10:38:35 +01:00
package fr.ntr;
2023-03-03 11:09:13 +01:00
import java.util.ArrayList;
import java.util.List;
2023-03-03 10:38:35 +01:00
public class User {
2023-03-03 11:09:13 +01:00
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() {
}
2023-03-03 11:30:35 +01:00
/**
* calculDélai
*/
public double calculateLatency() {
2023-03-03 11:09:13 +01:00
return 0d;
}
2023-03-03 10:38:35 +01:00
}