debut MPD
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user