package fr.ntr;
public class Packets {
static final int packetSize = 100;
private int startTimeSending;
private int endTimeSending;
private int durationSending;
private double bitsNumberRemaining;
public Packets(int startTimeSending){
this.startTimeSending = startTimeSending;
}
public int getStartTimeSending() {
return startTimeSending;
public void setStartTimeSending(int startTimeSending) {
public int getEndTimeSending() {
return endTimeSending;
public void setEndTimeSending(int endTimeSending) {
this.endTimeSending = endTimeSending;
public void setDurationSending(){
int durationSending = endTimeSending - startTimeSending;
this.durationSending = durationSending;
public int getDurationSending() {
return durationSending;