From a54c2660e99580561aa187c98fba68db694cf526 Mon Sep 17 00:00:00 2001 From: Tr1xt4n Date: Fri, 3 Mar 2023 11:10:21 +0100 Subject: [PATCH] Packet --- src/main/java/fr/ntr/Packets.java | 12 ++++++++++++ .../ntr/{ResourceBlock.java => RessourceUnit.java} | 0 2 files changed, 12 insertions(+) rename src/main/java/fr/ntr/{ResourceBlock.java => RessourceUnit.java} (100%) 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