Commit ded5352f authored by patrick.lambert's avatar patrick.lambert
Browse files

with a default ANG

parent 1465e4be
......@@ -59,12 +59,16 @@ public class AnalyseSpawnerFeatures extends AquaNismsGroupProcess<DiadromousFish
private transient Map<RiverBasin, QueueMemory<Double>> primiparousMemories;
private transient DiadromousFishGroup defaultGroup;
protected static transient ObservablesHandler cobservable;
@Override
public void initTransientParameters(Pilot pilot) {
super.initTransientParameters(pilot);
defaultGroup = (DiadromousFishGroup) pilot.getAquaticWorld().getAquaNismsGroupsList().get(0);
// keep the river basins
riverBasins = ((RIOBasinNetwork) pilot.getAquaticWorld().getEnvironment()).getRiverBasins();
......@@ -222,6 +226,11 @@ public class AnalyseSpawnerFeatures extends AquaNismsGroupProcess<DiadromousFish
}
public double getMeanLengthOfMatureFish() {
return getMeanLengthOfMatureFish(defaultGroup);
}
public double getMeanLengthOfMatureFish(DiadromousFishGroup group) {
double sumOfLength = 0.;
double numberOfMatureFish = 0.;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment