A lot of things.

- Change tests directory location.
- Fix Merlu CSV UTF8 encoding.
- Make classes for ParasitesPeru2021.csv Parsing.
This commit is contained in:
2026-03-31 19:00:19 +02:00
parent 2bf0ca34df
commit 3a6968f40f
17 changed files with 441 additions and 59 deletions

View File

@@ -0,0 +1,50 @@
package ecoparasite.population;
import java.util.HashMap;
import java.util.HashSet;
public class Population {
private String id;
private PopulationArgs total;
private HashMap<Integer,PopulationArgs> perYear;
public Population(String id, PopulationArgs total, HashMap<Integer,PopulationArgs> perYear) {
this.id = id;
this.total = total;
this.perYear = perYear;
}
public Population(String id, PopulationArgs total) {
this.id = id;
this.total = total;
this.perYear = new HashMap<>();
}
public Population(String id) {
this.id = id;
this.total = null;
this.perYear = new HashMap<>();
}
public String getId() {
return id;
}
public PopulationArgs getTotal() {
return total;
}
public HashMap<Integer,PopulationArgs> getPerYear() {
return perYear;
}
public void setTotal(PopulationArgs total) {
this.total = total;
}
public void setPerYear(HashMap<Integer,PopulationArgs> perYear) {
this.perYear = perYear;
}
}