From ee0940124439d4f3b05711623c361d930a638e5a Mon Sep 17 00:00:00 2001 From: iboyeau Date: Fri, 24 Mar 2023 09:40:05 +0100 Subject: [PATCH] starting cell --- src/main/java/fr/ntr/Cell.java | 13 +++++++++++++ src/main/java/fr/ntr/Main.java | 1 - .../fr/ntr/scheduler/ProportionalFair.java | 18 ++++++++++-------- 3 files changed, 23 insertions(+), 9 deletions(-) create mode 100644 src/main/java/fr/ntr/Cell.java diff --git a/src/main/java/fr/ntr/Cell.java b/src/main/java/fr/ntr/Cell.java new file mode 100644 index 0000000..b0772d2 --- /dev/null +++ b/src/main/java/fr/ntr/Cell.java @@ -0,0 +1,13 @@ +package fr.ntr; + +import fr.ntr.scheduler.MaxSNR; +import fr.ntr.scheduler.Scheduler; + +import java.util.ArrayList; +import java.util.List; + +public class Cell { + + public static void createCell() { + } +} \ No newline at end of file diff --git a/src/main/java/fr/ntr/Main.java b/src/main/java/fr/ntr/Main.java index 2bd2327..ac4f32a 100644 --- a/src/main/java/fr/ntr/Main.java +++ b/src/main/java/fr/ntr/Main.java @@ -10,7 +10,6 @@ import java.util.List; public class Main { public static void main(String[] args) { - if(args.length == 2) { int numberOfTicks; // Nombre de ticks de la simulation -> durée de la simulation int maximumLoad; // Nombre maximal d'utilisateurs dans le système diff --git a/src/main/java/fr/ntr/scheduler/ProportionalFair.java b/src/main/java/fr/ntr/scheduler/ProportionalFair.java index 5ffe2fd..9e68531 100644 --- a/src/main/java/fr/ntr/scheduler/ProportionalFair.java +++ b/src/main/java/fr/ntr/scheduler/ProportionalFair.java @@ -2,18 +2,20 @@ package fr.ntr.scheduler; import java.util.List; +import fr.ntr.ResourceBlock; import fr.ntr.User; public class ProportionalFair extends Scheduler { - private String name; - private int index; - - public ProportionalFair(String name, int index) { - this.name = name; - this.index = index; - } - + private String name; + private List users; + private ResourceBlock[][] frame; + + public ProportionalFair(String name, ResourceBlock[][] frame, List users) { + this.name = name; + this.frame = frame; + this.users = users; + } @Override public void scheduling() { }