42 lines
794 B
Java
42 lines
794 B
Java
|
|
package ecoparasite.poisson;
|
||
|
|
|
||
|
|
import java.util.HashSet;
|
||
|
|
|
||
|
|
public class Poisson{
|
||
|
|
|
||
|
|
private String specie;
|
||
|
|
private Double length;
|
||
|
|
private Double weight;
|
||
|
|
private Double infestation;
|
||
|
|
protected HashSet<PartiePoisson> fishParts;
|
||
|
|
|
||
|
|
public Poisson(String specie, Double length, Double weight, Double infestation){
|
||
|
|
this.specie = specie;
|
||
|
|
this.length = length;
|
||
|
|
this.weight = weight;
|
||
|
|
this.infestation = infestation;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
public String getSpecie() {
|
||
|
|
return specie;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Double getLength() {
|
||
|
|
return length;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Double getWeight() {
|
||
|
|
return weight;
|
||
|
|
}
|
||
|
|
|
||
|
|
public Double getInfestation() {
|
||
|
|
return infestation;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public String toString(){
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
}
|