Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
3916e70
:hammer: maj toString Planning
emerick-biron Jan 21, 2021
19f870d
Merge branch 'main' of https://github.com/DevLab-umontp/API-JAVA-EDT …
MathieuSoysal Jan 25, 2021
4af6fb0
💚 Mise à jour CI : maven deploy
MathieuSoysal Jan 25, 2021
01c8bd3
✅ Mise à jour tests : EmploiDuTempsProxy
MathieuSoysal Jan 25, 2021
b20330c
Merge branch 'interface-API' of https://github.com/DevLab-umontp/API-…
MathieuSoysal Jan 25, 2021
f7283b4
✅ Ajout professeurTest
MathieuSoysal Jan 26, 2021
1042697
🔨 validation test professeur
MathieuSoysal Jan 26, 2021
e8450ac
✅ Mise à jour tests : ProfesseurTest
MathieuSoysal Jan 26, 2021
a91da6c
🔨 mise à jour : Professeur
MathieuSoysal Jan 26, 2021
1b80029
✅ Ajout tests : RepertoireProfesseurTest.java
MathieuSoysal Jan 26, 2021
2edda10
🔨 Validation tests : RepertoireProfesseur
MathieuSoysal Jan 26, 2021
222f665
✅ mise à jours tests : CoursTest
MathieuSoysal Jan 26, 2021
bedff8e
✅ Mise à jours tests : PlanningTest
MathieuSoysal Jan 26, 2021
e0c04af
🔨 Mise à jour Cours :
MathieuSoysal Jan 26, 2021
a65f9d5
🔥 Suppression méthodes obsolètes
MathieuSoysal Jan 26, 2021
e00d0de
✅ Ajout test validé : RepertoireProfesseurTest
MathieuSoysal Jan 26, 2021
dd12cca
🎨 Formatage du code
MathieuSoysal Jan 26, 2021
fa628b5
📝 Ajout badge Maven Central :D
MathieuSoysal Jan 26, 2021
1cd529a
✅🛑 Ajout test non-validé : RepertoireProfesseurTest
MathieuSoysal Jan 27, 2021
0edddef
🔨 Validation tests RepertoireProfesseur
MathieuSoysal Jan 27, 2021
38bc6da
✅ Mise à jour des tests validés : RepertoireProfesseurTest
MathieuSoysal Jan 27, 2021
f866cb3
✅🛑 Ajout test non-validé : RepertoireProfesseurTest
MathieuSoysal Jan 27, 2021
878344f
🔨 Validation de tous les test : RepertoireProfesseurTest
MathieuSoysal Jan 27, 2021
9528ead
✅🛑 Ajout test non-validé CoursTest
MathieuSoysal Jan 27, 2021
224bafe
🔨 Validation tests : Cours
MathieuSoysal Jan 27, 2021
86dd03a
✅🛑 Ajout test non-validé : PlanningTest
MathieuSoysal Jan 27, 2021
229de06
🔨 Validation test Planning
MathieuSoysal Jan 27, 2021
0e435a3
✅🛑 Ajout tests non-validé : EmploiDuTemps
MathieuSoysal Jan 27, 2021
21f3b9f
🔨 Validation tests : EmploiDuTmeps
MathieuSoysal Jan 27, 2021
cb3ce02
✅🛑 Ajout tests non-validé EmploiDuTempsProxy
MathieuSoysal Jan 27, 2021
b80cf12
🔨 Validation des test EmploiDuTempsProxy
MathieuSoysal Jan 27, 2021
0f1bb3c
🔥 Suppression méthodes obsolètes
MathieuSoysal Jan 27, 2021
8d3a40d
♻ Refactorisation Professeur
MathieuSoysal Jan 27, 2021
cee82ff
📝 Mise à jour Javadoc RepertoireProfesseur
MathieuSoysal Jan 27, 2021
715e995
🙈 Mise à jour .gitignore :
MathieuSoysal Jan 27, 2021
74d838e
🎨 Mise à jour structure Planning
MathieuSoysal Jan 27, 2021
9c54dd9
🎨 Mise à jour structure Planning
MathieuSoysal Jan 27, 2021
892ef5f
✅🛑 Ajout tests non-validé : Planning
MathieuSoysal Jan 27, 2021
9324df9
✅🛑 Ajout test non-validé Cours
MathieuSoysal Jan 27, 2021
6b9292d
🔨 Validation test Cours
MathieuSoysal Jan 27, 2021
d4f4fc1
🔨 Validation test Planning :
MathieuSoysal Jan 27, 2021
063875c
🔨 Mise à jours EmploiDuTemps
MathieuSoysal Jan 27, 2021
241f16e
✅🛑 Ajout test non-validé EmploiDuTempsProxy
MathieuSoysal Jan 27, 2021
fb4e439
🔨 Validation test EmploiDuTempsProxy
MathieuSoysal Jan 27, 2021
03f9b7f
✅🛑 Ajout test non-validé Planning :
MathieuSoysal Jan 27, 2021
4ce27e4
📝 Mise à jour Javadoc
MathieuSoysal Jan 27, 2021
e6eaca6
🔨 Validation tests Planning
MathieuSoysal Jan 27, 2021
44c7ad8
✅🛑 Ajout test non-validé EmploiDuTemps
MathieuSoysal Jan 27, 2021
30355c8
📝 Mise à jour Javadoc planifiable
MathieuSoysal Jan 27, 2021
e05f285
🔨 Validation test EmploiDuTemps
MathieuSoysal Jan 27, 2021
1c4ef58
✅ Correction des tests (validés) EmploiDuTempsProxy
MathieuSoysal Jan 27, 2021
ccbb994
✅🛑 Ajout tests non-validés EmploiDuTempsProxy
MathieuSoysal Jan 27, 2021
3b3f68f
🔨 Validation test EmploiDuTempsProxy
MathieuSoysal Jan 27, 2021
06fd32c
✅🛑 Ajout test non-validés PlanningTest
MathieuSoysal Jan 27, 2021
9c002e0
🔨 Validation test Planning
MathieuSoysal Jan 27, 2021
a15baf5
♻ Refactorisation Planning
MathieuSoysal Jan 27, 2021
5e6c8f3
✅🛑 Ajout test non-validé EmploiDuTempsTest
MathieuSoysal Jan 27, 2021
0948bbd
🔨 Validation des tests EmploiDuTemps
MathieuSoysal Jan 27, 2021
8918776
📝 Mise à jour Javadoc
MathieuSoysal Jan 27, 2021
cfe4c54
✅🛑 Ajout tests non-validé
MathieuSoysal Jan 27, 2021
c4aa921
🔨 Validation de tous les tests : EmploiDuTempsProxy
MathieuSoysal Jan 27, 2021
10c04ba
✅🛑 Ajout test non-validé PlanningFiltreurTest
MathieuSoysal Jan 27, 2021
0fb5db6
🔨 Validation test PlanningFiltreur
MathieuSoysal Jan 27, 2021
a924091
✅ Ajout test validé
MathieuSoysal Jan 27, 2021
5742c99
✅🛑 Ajout test non-validés PlanningFiltreurTest
MathieuSoysal Jan 27, 2021
28d5b76
🔨 Validation test PlanningFiltreur
MathieuSoysal Jan 27, 2021
da571eb
✅ Ajout test validé PlanningFiltreurTest
MathieuSoysal Jan 27, 2021
5671697
✅🛑 Ajout test non-validé PlanningFiltreurTest
MathieuSoysal Jan 27, 2021
4c4b5dc
🔨 Validation test PlanningFiltreur
MathieuSoysal Jan 27, 2021
125e080
✅ Ajout test validé PlanningFiltreurTest
MathieuSoysal Jan 27, 2021
61ef5a5
✅🛑 Ajout test non-validé PlanningTest :
MathieuSoysal Jan 27, 2021
28f2269
🔨 Validation test PlanningFiltreur
MathieuSoysal Jan 27, 2021
ad1daf1
✅🛑 Ajout test non-validé PlanningFiltreurTest
MathieuSoysal Jan 27, 2021
0d435d2
🔨 Validation test Planning avec PlanningFiltreur
MathieuSoysal Jan 27, 2021
bae0f63
✅🛑 Ajout test non-validé : PlanningTest :
MathieuSoysal Jan 27, 2021
399a015
🔨 Validation test Palnning :
MathieuSoysal Jan 27, 2021
687c249
✅ Ajout tests validés PlanningTest
MathieuSoysal Jan 27, 2021
430ded1
🎨 Structure Plannifiable
MathieuSoysal Jan 27, 2021
1d85496
✅🛑 Ajout test non-validé : PlanninFiltreurTest
MathieuSoysal Jan 27, 2021
bcc353c
🔨 Validation test PlanningFiltreur
MathieuSoysal Jan 27, 2021
f681993
✅🛑 Ajout test non-validé PlanningFiltreurTest
MathieuSoysal Jan 27, 2021
f8a2ed9
🔨 Validation test PlanningFiltreur
MathieuSoysal Jan 27, 2021
ff6c543
✅🛑 Ajout test non-validé PlanningFiltreurTest
MathieuSoysal Jan 27, 2021
18925fc
🔨 Validation test PlanningFiltreur
MathieuSoysal Jan 27, 2021
9a22e49
✅🛑 Ajout test non-validé PlanningFiltreurTest
MathieuSoysal Jan 27, 2021
d32c8d9
🔨 Validation test PlanningFiltreur
MathieuSoysal Jan 27, 2021
f18fc8c
✅🛑 Ajout test non-validé : PlanningFiltreurTest
MathieuSoysal Jan 27, 2021
0b1e40a
🔨 Validation test PlanningFiltreur
MathieuSoysal Jan 27, 2021
83c8972
💚 Ajout CI Javadoc validateur
MathieuSoysal Jan 27, 2021
1232e22
📝 Validation du Javadoc
MathieuSoysal Jan 27, 2021
573e292
📝 Mise à jour Javadoc Planning
MathieuSoysal Jan 27, 2021
7b0a960
✅🛑 Ajout tests non-validés EmploiDuTempsTest
MathieuSoysal Jan 27, 2021
3ab2892
🔨 Validation test EmploiDuTemps
MathieuSoysal Jan 27, 2021
97b3366
✅🛑 Ajout test non-validé EmploiDuTempsProxyTest
MathieuSoysal Jan 27, 2021
22e45c2
🔨 Validation test EmploiDuTempsProxy
MathieuSoysal Jan 27, 2021
ff27396
♻ Refactorisation EmploiDuTempsProxy
MathieuSoysal Jan 28, 2021
5d33ed5
📝 Mise à jour README.md :
MathieuSoysal Jan 28, 2021
876a065
📝 Mise à jours ExempleDeCode.java
MathieuSoysal Jan 28, 2021
899cd09
📝 Correction documentation : ExempleDeCode
MathieuSoysal Jan 28, 2021
76f5fc6
🔨 Validation test PlanningFiltreur
MathieuSoysal Jan 28, 2021
4f0a944
♻ Refactorisation Planning
MathieuSoysal Jan 28, 2021
9fabdc5
♻ Refactorisation Planning getPlanningOf Professeurs
MathieuSoysal Jan 28, 2021
ddab8e9
♻ Refactorisation RepertoireProfesseur
MathieuSoysal Jan 28, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 17 additions & 16 deletions .github/workflows/maven-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,37 @@ jobs:
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}

- name: Set up JDK 11 for deploy to OSSRH
- name: Set up JDK 11 for deploy to github packages
uses: actions/setup-java@v1
with:
java-version: 11
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
server-id: github

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Update package version
run: mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}

- name: Publish to Apache Maven Central
run: mvn deploy -PossrhDeploy
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -PgithubDeploy
env:
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up JDK 11 for deploy to github packages
- name: Set up JDK 11 for deploy to OSSRH
uses: actions/setup-java@v1
with:
java-version: 11
server-id: github
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -PgithubDeploy
- name: Publish to Apache Maven Central
run: mvn deploy -PossrhDeploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

2 changes: 2 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ jobs:
java-version: 11
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Javadoc with Maven
run: mvn -PossrhDeploy javadoc:javadoc
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Compiled class file
*.class

Test.java

#VSCode
.project
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[![Maven Central](https://img.shields.io/maven-central/v/com.github.devlab-umontp/edt-iut-umontp.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.devlab-umontp%22%20AND%20a:%22edt-iut-umontp%22)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=DevLab-umontp_API-JAVA-EDT&metric=alert_status)](https://sonarcloud.io/dashboard?id=DevLab-umontp_API-JAVA-EDT)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=DevLab-umontp_API-JAVA-EDT&metric=coverage)](https://sonarcloud.io/dashboard?id=DevLab-umontp_API-JAVA-EDT)
![GitHub Actions](https://github.com/DevLab-umontp/API-JAVA-EDT/workflows/Java%20CI%20with%20Maven/badge.svg)
[![Javadoc](https://img.shields.io/badge/JavaDoc-Online-green)](https://mathieusoysal.github.io/stats/api-java-edt)
[![Gitmoji.dev](https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg?style=flat-square)](https://gitmoji.dev)
[![GitHub](https://img.shields.io/github/license/DevLab-umontp/API-JAVA-EDT)](https://github.com/DevLab-umontp/API-JAVA-EDT/blob/master/LICENSE)
# ![](ressources/devicon.png) Librairie Java : EDT IUT Montpellier

# ![](ressources/devicon.png) Librairie Java : EDT IUT Montpellier [![GitHub](https://img.shields.io/github/license/DevLab-umontp/API-JAVA-EDT)](https://github.com/DevLab-umontp/API-JAVA-EDT/blob/master/LICENSE)

### IUT Montpellier-Sète – Département Informatique
* **Colaborateurs:** [étudiants du département informatique](https://iut-montpellier-sete.edu.umontpellier.fr/dut-informatique/)
Expand Down Expand Up @@ -64,6 +65,7 @@ class ExempleDeCode {
}
}
```
>*Voir plus d'[exemples de code](ressources/ExempleDeCode.java)*
## Contribution
Les suggestions et contributions sont toujours les bienvenues! Veuillez discuter des modifications plus importantes via un [issue](https://github.com/DevLab-umontp/Librarie-Java-EDT/issues) avant de soumettre une demande.

Expand Down
49 changes: 49 additions & 0 deletions ressources/ExempleDeCode.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import java.time.LocalDate;

import fr.umontp.edt.*;

class ExempleDeCode {
public static void main(String[] args) {

// Récupérer l'emploi du temps de l'ent
EmploiDuTempsProxy emploiDuTempsProxy = EmploiDuTempsProxy.getInstance();

// Récupérer le planning d'aujourd'hui
Planning planningDate = emploiDuTempsProxy.getPlanningOf(LocalDate.now());

// Récupérer le planning du groupe S3
Planning planningGroupe = emploiDuTempsProxy.getPlanningOf(Groupe.S3);

// Récupérer le planning d'aujourd'hui du groupe S2
Planning planningDateGroupe = emploiDuTempsProxy.getPlanningOf(LocalDate.now(), Groupe.S2);

// Parcourir les cours d'un planning
for (Cours cours : planningGroupe) {
System.out.println(cours.getIntitule());
}

// Actualiser votre emploi du temps local avec celui de l'ent
emploiDuTempsProxy.actualiser();

// Récupérer le planning d'un professeur
Planning planningProfesseur = emploiDuTempsProxy.getPlanningOf(RepertoireProfesseur.get("Dupuis", "Jacques"));

// Récupérer le planning de plusieurs groupes
Planning planningGroupes = emploiDuTempsProxy.getPlanningOf(Groupe.S3, Groupe.S4);

// Récupérer le planning de plusieurs dates
Planning planningDates = emploiDuTempsProxy.getPlanningOf(LocalDate.now(), LocalDate.now().plusDays(1));

// Récupérer le planning de plusieurs professeurs
Professeur prof1 = RepertoireProfesseur.get("Dupuis", "Jacques");
Professeur prof2 = RepertoireProfesseur.get("Dupuis", "Jacqueline");
Planning planningProfesseurs = emploiDuTempsProxy.getPlanningOf(prof1, prof2);

// Récupérer un planning via le PlanningFiltreur pour faire des combinaisons entre professeur, groupe et date
PlanningFiltreur plusieursGroupesDatesEtProfesseurs = PlanningFiltreur.filtrer()
.par(Groupe.S2, Groupe.S3)
.par(LocalDate.now(), LocalDate.now().plusDays(1))
.par(prof1, prof2);
Planning planningAvecFiltreur = emploiDuTempsProxy.getPlanningOf(plusieursGroupesDatesEtProfesseurs);
}
}
62 changes: 31 additions & 31 deletions src/main/java/fr/umontp/edt/Cours.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import net.fortuna.ical4j.model.Component;
import net.fortuna.ical4j.model.DateTime;
Expand All @@ -33,22 +29,22 @@
*
* @author emerick-biron
* @author MathieuSoysal
* @version 1.0.0
* @version 1.1.0
*/
public class Cours implements Comparable<Cours> {
private LocalDate date;
private String[] prof;
private Professeur[] professeurs;
private LocalTime heureDebut;
private LocalTime heureFin;
private String lieu;
private int duree;
private Groupe[] groupes;
private String intitule;

public Cours(LocalDate date, String[] prof, LocalTime heureDebut, LocalTime heureFin, String lieu, Groupe[] groupe,
String intitule) {
public Cours(LocalDate date, Professeur[] professeurs, LocalTime heureDebut, LocalTime heureFin, String lieu,
Groupe[] groupe, String intitule) {
this.date = date;
this.prof = prof;
this.professeurs = professeurs;
this.heureDebut = heureDebut;
this.heureFin = heureFin;
this.lieu = lieu;
Expand Down Expand Up @@ -90,27 +86,27 @@ public Cours(LocalDate date, String[] prof, LocalTime heureDebut, LocalTime heur
heureFin = LocalTime.of(dateFin.getHours(), dateFin.getMinutes());
lieu = location.getValue();
intitule = summary.getValue();
prof = getProfFromDesc(description.getValue());
professeurs = RepertoireProfesseur.getProfesseurDepuisDescriptionEtAjouterSiNonPresent(description.getValue());
groupes = Groupe.getGroupeDepuisTexte(description.getValue());
duree = (int) Duration.between(heureDebut, heureFin).toMinutes();
}

/**
* Permet d'obtenir le(s) professeur(s) d'un VENVENT a partir de la description
* de ce dernier
*
* @param desc description du VENVENT
* @return {@code String[]} le(s) professeur(s) du present dans la description
* @since 1.0
* Permet de vérfier si un professeur est assigné à ce cours.
*
* @param professeur dont on veut vérier s'il est assigné au cour.
* @return {@code true} si le professeur est assigne à ce cours, sinon
* {@code false}.
*
* @see Cours#professeurs
*
* @since 1.1.0
*/
static String[] getProfFromDesc(String desc) {
String regex = "(?<=\\n)[- A-Z]* [- A-Z]*(?=\\n)";
Matcher m = Pattern.compile(regex).matcher(desc);
final List<String> matches = new ArrayList<>();
while (m.find()) {
matches.add(m.group(0));
}
return matches.toArray(new String[matches.size()]);
public boolean estEnseignePar(Professeur professeur) {
for (Professeur professeurAssigne : professeurs)
if (professeurAssigne == professeur)
return true;
return false;
}

@Override
Expand All @@ -124,12 +120,16 @@ public int compareTo(Cours o) {
result = Integer.compare(duree, o.duree);
if (result != 0)
return result;
for (Groupe groupe : groupes)
for (Groupe autreGroupe : o.groupes) {
result = groupe.getIntitule().compareTo(autreGroupe.getIntitule());
result = Integer.compare(groupes.length, o.groupes.length);
if (result != 0)
return result;
for (int i = 0; i < groupes.length; i++) {
if (groupes[i] != o.groupes[i]) {
result = groupes[i].getIntitule().compareTo(o.groupes[i].getIntitule());
if (result != 0)
return result;
}
}
return intitule.compareTo(o.intitule);
}

Expand All @@ -143,8 +143,8 @@ public LocalDate getDate() {
/**
* @return {@code String[]} les professeurs organisant le cours
*/
public String[] getProf() {
return prof;
public Professeur[] getProfesseurs() {
return professeurs;
}

/**
Expand Down Expand Up @@ -194,8 +194,8 @@ public String getIntitule() {
@Override
public String toString() {
return intitule.toUpperCase(Locale.ROOT) + " :\n Date : " + date + "\n Commence à " + heureDebut + ", finit à "
+ heureFin + "\n Enseignant :" + Arrays.toString(prof) + " \n Localisation : " + lieu + " \n Groupe : "
+ Arrays.toString(groupes);
+ heureFin + "\n Enseignant :" + Arrays.toString(professeurs) + " \n Localisation : " + lieu
+ " \n Groupe : " + Arrays.toString(groupes);
}

/*
Expand Down
56 changes: 43 additions & 13 deletions src/main/java/fr/umontp/edt/EmploiDuTemps.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*
* @author emerick-biron
* @author MathieuSoysal
* @version 1.0.0
* @version 1.2.0
*/
@Deprecated(forRemoval = false)
public final class EmploiDuTemps implements InterfaceEmploiDuTemps {
Expand Down Expand Up @@ -134,17 +134,16 @@ public void actualiser() {
}

/**
* Permet d'obtenir le planning correspondant à une date
* Permet d'obtenir le planning correspondant à une date ou plusieurs dates.
*
* @param date date pour laquelle on veut obtenir le planning
* @param dates dates pour lesquelles on veut obtenir le planning.
* @return {@code Planning} correspondant
* @since 1.0
*
* @see Planning
* @see Planning#getPlanningOf(LocalDate...)
*/
@Override
public Planning getPlanningOf(LocalDate date) {
return planningEmploisDuTemps.getPlanningOf(date);
public Planning getPlanningOf(LocalDate... dates) {
return planningEmploisDuTemps.getPlanningOf(dates);
}

/**
Expand All @@ -164,17 +163,48 @@ public Planning getPlanningOf(LocalDate date, Groupe groupe) {
}

/**
* Permet d'obtenir le planning correspondant à un groupe
* Permet d'obtenir le planning correspondant à un groupe ou plusieurs groupe.
*
* @param groupe groupe dont on veut obtenir le planning
* @param groupes groupes dont on veut obtenir le planning
* @return planning correspondant
* @since 1.0
*
* @see Groupe
* @see Planning
* @see Planning#getPlanningOf(Groupe...)
*/
@Override
public Planning getPlanningOf(Groupe... groupes) {
return planningEmploisDuTemps.getPlanningOf(groupes);
}

/**
* Permet d'obtenir le planning correspondant à un professeur ou plusieurs
* professeurs
*
* @param professeurs professeurs dont on veut obtenir le planning
* @return planning correspondant
* @since 1.1
*
* @see Professeur
* @see Planning
* @see Planning#getPlanningOf(Professeur...)
*/
@Override
public Planning getPlanningOf(Professeur... professeurs) {
return planningEmploisDuTemps.getPlanningOf(professeurs);
}

/**
* Permet d'obtenir le planning correspondant au {@link PlanningFiltreur}
*
* @param planningFiltreur filtrant le planning
* @return planning correspondant au filtre
* @since 1.2.0
*
* @see PlanningFiltreur
* @see Planning
*/
@Override
public Planning getPlanningOf(Groupe groupe) {
return planningEmploisDuTemps.getPlanningOf(groupe);
public Planning getPlanningOf(PlanningFiltreur planningFiltreur) {
return planningEmploisDuTemps.getPlanningOf(planningFiltreur);
}
}
Loading