Init de mon dépôt
This commit is contained in:
52
pakeje/Technicien.java
Normal file
52
pakeje/Technicien.java
Normal file
@@ -0,0 +1,52 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user