2026-03-18 15:19:10 +01:00
|
|
|
package ecoparasite.poisson;
|
|
|
|
|
|
|
|
|
|
import ecoparasite.input.DataParsing;
|
|
|
|
|
import ecoparasite.input.RawData;
|
|
|
|
|
|
|
|
|
|
import java.util.HashSet;
|
|
|
|
|
|
2026-03-18 16:45:42 +01:00
|
|
|
/**
|
|
|
|
|
* Hérite de Poisson.
|
|
|
|
|
* Ajoute les fonctions de Parsing liés aux données collectées sur le Merlu.
|
|
|
|
|
*/
|
2026-03-18 15:19:10 +01:00
|
|
|
public class Merlu extends Poisson implements DataParsing {
|
2026-03-18 15:37:18 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Construteur d'un merlu
|
|
|
|
|
* @param length Un Wrapper Double representant la longueur/taille du poisson
|
|
|
|
|
* @param infestation Un Wrapper Double representant le taux de parasite du poisson
|
|
|
|
|
*/
|
|
|
|
|
public Merlu(Double length, Double infestation) {
|
|
|
|
|
super("Merlu", length, null, infestation);
|
2026-03-18 15:19:10 +01:00
|
|
|
}
|
|
|
|
|
|
2026-03-18 15:37:18 +01:00
|
|
|
/**
|
|
|
|
|
* Implémentation de la fonction parse de Dataparsing
|
|
|
|
|
* @param data
|
|
|
|
|
* @return tableau des poissons
|
|
|
|
|
*/
|
2026-03-18 15:19:10 +01:00
|
|
|
@Override
|
2026-03-18 15:37:18 +01:00
|
|
|
public HashSet<Poisson> parse(RawData data) { //TODO
|
2026-03-18 15:19:10 +01:00
|
|
|
|
|
|
|
|
HashSet<Poisson> fishSet;
|
|
|
|
|
fishSet = new HashSet<>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return fishSet;
|
|
|
|
|
}
|
|
|
|
|
}
|