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/Packets.java

40 lines
935 B
Java
Raw Normal View History

2023-03-03 10:38:35 +01:00
package fr.ntr;
public class Packets {
2023-03-03 11:10:21 +01:00
static final int packetSize = 100;
private int startTimeSending;
2023-03-03 11:10:21 +01:00
private int endTimeSending;
private int durationSending;
2023-03-03 11:10:21 +01:00
private double bitsNumberRemaining;
public Packets(int startTimeSending){
this.startTimeSending = startTimeSending;
}
public int getStartTimeSending() {
return startTimeSending;
}
public void setStartTimeSending(int startTimeSending) {
this.startTimeSending = startTimeSending;
}
public int getEndTimeSending() {
return endTimeSending;
}
public void setEndTimeSending(int endTimeSending) {
2023-03-03 11:10:21 +01:00
this.endTimeSending = endTimeSending;
}
public void setDurationSending(){
int durationSending = endTimeSending - startTimeSending;
this.durationSending = durationSending;
}
public int getDurationSending() {
return durationSending;
}
2023-03-10 09:17:15 +01:00
}