Add User structure, fix scheduler
This commit is contained in:
parent
12fe20c4a8
commit
b0242e670e
@ -1,4 +1,33 @@
|
|||||||
package fr.ntr;
|
package fr.ntr;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class User {
|
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() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public double calculateDelta() {
|
||||||
|
return 0d;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,5 +3,7 @@ package fr.ntr.scheduler;
|
|||||||
public abstract class Scheduler {
|
public abstract class Scheduler {
|
||||||
|
|
||||||
public abstract void scheduling();
|
public abstract void scheduling();
|
||||||
protected abstract void TraitementDOnnées();
|
protected void TraitementDonnées() {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user