2026-03-31 19:00:19 +02:00
|
|
|
package ecoparasite.population;
|
|
|
|
|
|
2026-04-01 14:34:07 +02:00
|
|
|
/**
|
|
|
|
|
* Permet de stocker les paramètres d'une population pour une année spécifique.
|
|
|
|
|
* Par convention, si on est sur le total, on mettra comme année 0.
|
|
|
|
|
*/
|
2026-03-31 19:00:19 +02:00
|
|
|
public class PopulationArgs {
|
|
|
|
|
|
2026-04-01 14:34:07 +02:00
|
|
|
/**
|
|
|
|
|
* Année de référence pour ces paramètres.
|
|
|
|
|
*/
|
2026-03-31 19:00:19 +02:00
|
|
|
private int year;
|
|
|
|
|
|
2026-04-01 14:34:07 +02:00
|
|
|
/**
|
|
|
|
|
* Le nombre d'individus analysés.
|
|
|
|
|
*/
|
2026-03-31 19:00:19 +02:00
|
|
|
private int number;
|
|
|
|
|
private PopulationArgInterval length;
|
|
|
|
|
private PopulationArgInterval width;
|
|
|
|
|
private PopulationArgInterval prevalence;
|
|
|
|
|
private PopulationArgInterval ic;
|
|
|
|
|
private Double intensity;
|
|
|
|
|
private Double abondance;
|
|
|
|
|
|
2026-04-01 14:34:07 +02:00
|
|
|
/**
|
|
|
|
|
* Constructeur.
|
|
|
|
|
* Toutes les données peuvent être préremplis dans ce constructeur sauf l'année.
|
|
|
|
|
* L'année sera par défaut à zéro.
|
|
|
|
|
*
|
|
|
|
|
* @param N
|
|
|
|
|
* @param length
|
|
|
|
|
* @param width
|
|
|
|
|
* @param prevalence
|
|
|
|
|
* @param ic
|
|
|
|
|
* @param intensity
|
|
|
|
|
* @param abondance
|
|
|
|
|
*/
|
2026-03-31 19:00:19 +02:00
|
|
|
public PopulationArgs(
|
|
|
|
|
int N,
|
|
|
|
|
PopulationArgInterval length,
|
|
|
|
|
PopulationArgInterval width,
|
|
|
|
|
PopulationArgInterval prevalence,
|
|
|
|
|
PopulationArgInterval ic,
|
|
|
|
|
Double intensity,
|
|
|
|
|
Double abondance
|
|
|
|
|
){
|
|
|
|
|
this.year = 0;
|
|
|
|
|
this.number = N;
|
|
|
|
|
this.length = length;
|
|
|
|
|
this.width = width;
|
|
|
|
|
this.prevalence = prevalence;
|
|
|
|
|
this.ic = ic;
|
|
|
|
|
this.intensity = intensity;
|
|
|
|
|
this.abondance = abondance;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-01 14:34:07 +02:00
|
|
|
/**
|
|
|
|
|
* Constructeur.
|
|
|
|
|
* Toutes les données ainsi que l'année peuvent être préremplis.
|
|
|
|
|
*
|
|
|
|
|
* @param year
|
|
|
|
|
* @param N
|
|
|
|
|
* @param length
|
|
|
|
|
* @param width
|
|
|
|
|
* @param prevalence
|
|
|
|
|
* @param ic
|
|
|
|
|
* @param intensity
|
|
|
|
|
* @param abondance
|
|
|
|
|
*/
|
2026-03-31 19:00:19 +02:00
|
|
|
public PopulationArgs(
|
|
|
|
|
int year,
|
|
|
|
|
int N,
|
|
|
|
|
PopulationArgInterval length,
|
|
|
|
|
PopulationArgInterval width,
|
|
|
|
|
PopulationArgInterval prevalence,
|
|
|
|
|
PopulationArgInterval ic,
|
|
|
|
|
Double intensity,
|
|
|
|
|
Double abondance
|
|
|
|
|
){
|
|
|
|
|
this.year = year;
|
|
|
|
|
this.number = N;
|
|
|
|
|
this.length = length;
|
|
|
|
|
this.width = width;
|
|
|
|
|
this.prevalence = prevalence;
|
|
|
|
|
this.ic = ic;
|
|
|
|
|
this.intensity = intensity;
|
|
|
|
|
this.abondance = abondance;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-01 14:34:07 +02:00
|
|
|
/**
|
|
|
|
|
* Constructeur.
|
|
|
|
|
* Permet de remplir tout d'abord l'année, les autres paramètres seront remplis par les setters.
|
|
|
|
|
*
|
|
|
|
|
* @param year
|
|
|
|
|
*/
|
2026-03-31 19:00:19 +02:00
|
|
|
public PopulationArgs(
|
|
|
|
|
int year
|
|
|
|
|
){
|
|
|
|
|
this.year = year;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-01 14:34:07 +02:00
|
|
|
/**
|
|
|
|
|
* Constructeur.
|
|
|
|
|
* Initialise l'objet avec une année par défaut (0).
|
|
|
|
|
*/
|
2026-03-31 19:00:19 +02:00
|
|
|
public PopulationArgs(){
|
|
|
|
|
this.year = 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-01 14:34:07 +02:00
|
|
|
/*
|
|
|
|
|
GETTERS / SETTERS
|
|
|
|
|
*/
|
|
|
|
|
|
2026-03-31 19:00:19 +02:00
|
|
|
public int getYear() {
|
|
|
|
|
return year;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getNumber() {
|
|
|
|
|
return number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public PopulationArgInterval getLength() {
|
|
|
|
|
return length;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public PopulationArgInterval getWidth() {
|
|
|
|
|
return width;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public PopulationArgInterval getPrevalence() {
|
|
|
|
|
return prevalence;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public PopulationArgInterval getIc() {
|
|
|
|
|
return ic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Double getIntensity() {
|
|
|
|
|
return intensity;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Double getAbondance() {
|
|
|
|
|
return abondance;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setNumber(int number) {
|
|
|
|
|
this.number = number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setLength(PopulationArgInterval length) {
|
|
|
|
|
this.length = length;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setWidth(PopulationArgInterval width) {
|
|
|
|
|
this.width = width;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPrevalence(PopulationArgInterval prevalence) {
|
|
|
|
|
this.prevalence = prevalence;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIc(PopulationArgInterval ic) {
|
|
|
|
|
this.ic = ic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIntensity(Double intensity) {
|
|
|
|
|
this.intensity = intensity;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setAbondance(Double abondance) {
|
|
|
|
|
this.abondance = abondance;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|