-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjet.java
More file actions
54 lines (41 loc) · 1.39 KB
/
Projet.java
File metadata and controls
54 lines (41 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import java.io.Serializable;
import java.util.ArrayList;
// Cette classe contiens les informations d'un projet
// Cette classe n'est pas finie , il manque les methodes.
public class Projet implements Serializable {
private String nom,description;
private ArrayList<Tache> taches;
private final Utilisateur utilisateur;
public Projet(String nom, String description, ArrayList<Tache> taches,Utilisateur utilisateur) {
this.nom = nom;
this.description = description;
this.taches = taches;
this.utilisateur = utilisateur;
}
// -------------------------------------- Delimitation Setters/Getters --------------------------------------
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ArrayList<Tache> getTaches() {
return taches;
}
public void setTaches(ArrayList<Tache> taches) {
this.taches = taches;
}
public Utilisateur getUtilisateur() {
return utilisateur;
}
// -------------------------------------- Delimitation Setters/Getters --------------------------------------
public void ajouterTache(Tache tache) {
taches.add(tache);
}
}