51 lines
1.1 KiB
Java
51 lines
1.1 KiB
Java
package travaux;
|
|
import java.util.*;
|
|
|
|
public class Technicien {
|
|
|
|
/**
|
|
* Association Type = Ouverture
|
|
*/
|
|
private ArrayList<Ouverture> listeOuvertures;
|
|
private String nom;
|
|
private int anneesExperience;
|
|
|
|
public Technicien(String nom,int anneesExperience,ArrayList<Ouverture> listeOuvertures) {
|
|
setNom(nom);
|
|
setAnneesExperience( anneesExperience);
|
|
listeOuvertures = new ArrayList<Ouverture>();
|
|
}
|
|
|
|
public void getFicheInfo() {
|
|
// TODO - implement Technicien.getFicheInfo
|
|
//throw new UnsupportedOperationException();
|
|
System.out.println("INFO TECHNICIEN:");
|
|
System.out.println("Nom: " +getNom());
|
|
System.out.println("Annees experience: "+getAnneesExperience());
|
|
}
|
|
|
|
public ArrayList<Ouverture> getListeOuvertures() {
|
|
return listeOuvertures;
|
|
}
|
|
|
|
public void setListeOuvertures(ArrayList<Ouverture> listeOuvertures) {
|
|
this.listeOuvertures = listeOuvertures;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
} |