Compare commits
No commits in common. "6b4f76900e74e0312439523b895341f9df4975bf" and "47f4dfc1869614b68a29faad6b6deed9e3273d2e" have entirely different histories.
6b4f76900e
...
47f4dfc186
@ -9,89 +9,5 @@ package Metier;
|
|||||||
* @author emile.lalorcey
|
* @author emile.lalorcey
|
||||||
*/
|
*/
|
||||||
public class Medicament {
|
public class Medicament {
|
||||||
/**
|
|
||||||
* id = le numero du médicament
|
|
||||||
* nom = le nom du médicament
|
|
||||||
* composition = la composition du médicament
|
|
||||||
* effet = les effet du médicament
|
|
||||||
* contreindication = les contreindications du médicament
|
|
||||||
* prix = le prix en unité du médicament
|
|
||||||
*/
|
|
||||||
private int id;
|
|
||||||
private String nom;
|
|
||||||
private String composition;
|
|
||||||
private String effet;
|
|
||||||
private String contreindication;
|
|
||||||
private float prix;
|
|
||||||
|
|
||||||
|
|
||||||
/** LE CONSTRUCTEUR DEFAULT
|
|
||||||
*
|
|
||||||
* @param id
|
|
||||||
* @param nom
|
|
||||||
* @param composition
|
|
||||||
* @param effet
|
|
||||||
* @param contreindication
|
|
||||||
* @param prix
|
|
||||||
*/
|
|
||||||
public Medicament(int id, String nom, String composition, String effet, String contreindication, float prix) {
|
|
||||||
this.id = id;
|
|
||||||
this.nom = nom;
|
|
||||||
this.composition = composition;
|
|
||||||
this.effet = effet;
|
|
||||||
this.contreindication = contreindication;
|
|
||||||
this.prix = prix;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** LES GUETTEUR
|
|
||||||
* @return the id
|
|
||||||
*/
|
|
||||||
public int getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the nom
|
|
||||||
*/
|
|
||||||
public String getNom() {
|
|
||||||
return nom;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the composition
|
|
||||||
*/
|
|
||||||
public String getComposition() {
|
|
||||||
return composition;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the effet
|
|
||||||
*/
|
|
||||||
public String getEffet() {
|
|
||||||
return effet;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the contreindication
|
|
||||||
*/
|
|
||||||
public String getContreindication() {
|
|
||||||
return contreindication;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the prix
|
|
||||||
*/
|
|
||||||
public float getPrix() {
|
|
||||||
return prix;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "Medicament{" + "id=" + id + ", nom=" + nom + ", composition=" + composition + ", effet=" + effet + ", contreindication=" + contreindication + ", prix=" + prix + '}';
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user