From 1f69210e29fd09c28a55c7d4378f949f125d4bbc Mon Sep 17 00:00:00 2001 From: loris penven Date: Fri, 3 Mar 2023 11:28:51 +0100 Subject: [PATCH] added PF scheduler --- .classpath | 13 +++++--- .project | 19 ++++++++++- .../fr/ntr/scheduler/ProportionalFair.java | 33 +++++++++++++++++++ 3 files changed, 60 insertions(+), 5 deletions(-) create mode 100644 src/main/java/fr/ntr/scheduler/ProportionalFair.java diff --git a/.classpath b/.classpath index 2acdaef..4857be4 100644 --- a/.classpath +++ b/.classpath @@ -1,7 +1,12 @@ - - - - + + + + + + + + + diff --git a/.project b/.project index c220539..2caaf68 100644 --- a/.project +++ b/.project @@ -1,6 +1,6 @@ - ntr + ntr-tp @@ -10,8 +10,25 @@ + + org.eclipse.buildship.core.gradleprojectbuilder + + + org.eclipse.jdt.core.javanature + org.eclipse.buildship.core.gradleprojectnature + + + 1677838833533 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + diff --git a/src/main/java/fr/ntr/scheduler/ProportionalFair.java b/src/main/java/fr/ntr/scheduler/ProportionalFair.java new file mode 100644 index 0000000..1e0b650 --- /dev/null +++ b/src/main/java/fr/ntr/scheduler/ProportionalFair.java @@ -0,0 +1,33 @@ +package fr.ntr.scheduler; + +import java.util.List; + +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; + } + + @Override + public void scheduling() { + } + + private void selectionUtilisateur(int Ts, int Sp, List Users) { + + } + + @Override + protected void TraitementDonnées() { + // TODO Auto-generated method stub + + } + + + +}