53 lines
1.2 KiB
Java
53 lines
1.2 KiB
Java
package pakeje;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
public class Technicien {
|
|
|
|
private String nom;
|
|
private int anneesExperience;
|
|
private ArrayList<Ouverture> listeOuvertures;
|
|
|
|
public Technicien() {
|
|
System.out.println("Constructeur par défault de Technicien");
|
|
this.nom = "/";
|
|
this.anneesExperience = 0;
|
|
}
|
|
|
|
public Technicien(String n, int ae) {
|
|
this();
|
|
this.nom = n;
|
|
this.anneesExperience = ae;
|
|
}
|
|
|
|
public void afficherInfos() {
|
|
System.out.println("~~~~~~~~~~~~~~~ Technicien ~~~~~~~~~~~~~~~");
|
|
System.out.println(" Nom : " + nom);
|
|
System.out.println(" Années d'xp : " + anneesExperience);
|
|
System.out.println(" Nombre d'ouvertures posées : " + listeOuvertures.size());
|
|
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
|
}
|
|
|
|
public void ajouterOuvertureBenite(Ouverture ouvertureBenite) {
|
|
listeOuvertures.add(ouvertureBenite);
|
|
}
|
|
|
|
public String getNom() {
|
|
return nom;
|
|
}
|
|
public void setNom(String nom) {
|
|
this.nom = nom;
|
|
}
|
|
public int getAnneesExperience() {
|
|
return anneesExperience;
|
|
}
|
|
public void setAnneesExperience(int anneesExperience) {
|
|
this.anneesExperience = anneesExperience;
|
|
}
|
|
|
|
public ArrayList<Ouverture> getListeOuvertures() {
|
|
return listeOuvertures;
|
|
}
|
|
|
|
}
|