first commit
This commit is contained in:
51
travaux/Technicien.java
Normal file
51
travaux/Technicien.java
Normal file
@@ -0,0 +1,51 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user