Commit 15:18

javadoc
This commit is contained in:
2026-03-25 16:22:16 +01:00
parent 4902c2c492
commit 73e91b3264
4 changed files with 41 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ import java.util.HashSet;
*/
public class Poisson{
private String specie;
private String id;
private Double length;
private Double weight;
private Double infestation;
@@ -16,13 +16,13 @@ public class Poisson{
/**
* Constructeur de l'objet Poisson
* @param specie Une String representant l'espece du poisson
* @param id Une String representant l'espece du poisson
* @param length Un Wrapper Double representant la longueur/taille du poisson
* @param weight Un Wrapper Double representant le poids du poisson
* @param infestation Un Wrapper Double representant le taux de parasite du poisson
*/
public Poisson(String specie, Double length, Double weight, Double infestation){
this.specie = specie;
public Poisson(String id, Double length, Double weight, Double infestation){
this.id = id;
this.length = length;
this.weight = weight;
this.infestation = infestation;
@@ -30,11 +30,11 @@ public class Poisson{
}
/**
* Getter de l'attribut specie
* @return La string de l'attribut specie
* Getter de l'attribut Id
* @return La string de l'attribut Id
*/
public String getSpecie() {
return specie;
public String getId() {
return id;
}
/**