debut MPD

This commit is contained in:
2022-11-12 19:19:37 +01:00
parent fcf32a2ec0
commit 6c20bfcdf2
8 changed files with 145 additions and 55 deletions

View File

@@ -33,6 +33,22 @@ public class GroupeNP implements Groupe {
this.sousGroupes=new LinkedHashSet<Groupe>();
this.membresDuGroupe=new LinkedHashSet<Etudiant>();
}
/**
* Nouveau groupe complet (pour le modèle persisant de donnée)
*/
public GroupeNP(int id, String name, int min, int max, TypeGroupe type, Groupe parent){
Objects.requireNonNull(name,"On ne peut pas créer un groupe dont le nom est null");
this.id=id;
this.nextId++;
this.name=name;
this.min=min;
this.max=max;
this.type=type;
this.pointPoint=parent;
this.sousGroupes=new LinkedHashSet<Groupe>();
this.membresDuGroupe=new LinkedHashSet<Etudiant>();
}
/**
* Nouveau groupe vide de type FREE sans étudiants, sans sous-Groupe