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 Mackerel.
|
|
|
|
|
*/
|
2026-03-18 15:19:10 +01:00
|
|
|
public class Mackerel extends Poisson implements DataParsing {
|
2026-03-25 15:30:59 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Constructeur de Mackerel
|
|
|
|
|
* @param length
|
|
|
|
|
* @param infestation
|
|
|
|
|
*/
|
|
|
|
|
public Mackerel(Double length, Double infestation) {
|
|
|
|
|
super("Mackerel", length, null, infestation);
|
2026-03-18 15:19:10 +01:00
|
|
|
}
|
|
|
|
|
|
2026-03-25 15:30:59 +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
|
|
|
|
|
public HashSet<Poisson> parse(RawData data) {
|
|
|
|
|
|
|
|
|
|
HashSet<Poisson> fishSet;
|
|
|
|
|
fishSet = new HashSet<>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return fishSet;
|
|
|
|
|
}
|
|
|
|
|
}
|