diff --git a/src/main/java/fr/ntr/Packets.java b/src/main/java/fr/ntr/Packets.java index 56cd443..d52ecab 100644 --- a/src/main/java/fr/ntr/Packets.java +++ b/src/main/java/fr/ntr/Packets.java @@ -1,4 +1,16 @@ package fr.ntr; public class Packets { + static final int packetSize = 100; + private int creationTime; + private int endTimeSending; + private double bitsNumberRemaining; + private User user; + + public Packets(int creationTime, int endTimeSending, double bitsNumberRemaining, User user){ + this.creationTime = creationTime; + this.endTimeSending = endTimeSending; + this.bitsNumberRemaining = bitsNumberRemaining; + this.user = user; + } } diff --git a/src/main/java/fr/ntr/ResourceBlock.java b/src/main/java/fr/ntr/RessourceUnit.java similarity index 100% rename from src/main/java/fr/ntr/ResourceBlock.java rename to src/main/java/fr/ntr/RessourceUnit.java