51 lines
1.2 KiB
Java
51 lines
1.2 KiB
Java
|
|
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;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|