Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SimAquaLife
GR3D
Commits
f6387b74
Commit
f6387b74
authored
Sep 17, 2019
by
Poulet Camille
Browse files
Male 1st correction
parent
3a1bbc49
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/species/ReproduceAndSurviveAfterReproductionWithDiagnose.java
View file @
f6387b74
...
...
@@ -209,6 +209,7 @@ public class ReproduceAndSurviveAfterReproductionWithDiagnose extends AquaNismsG
numberOfMaleSpawnerForFirstTime
+=
fish
.
getAmount
();
maleSpawnersForFirstTimeAgesSum
+=
fish
.
getAge
()
*
fish
.
getAmount
();
maleSpawnersForFirstTimeLengthsSum
+=
fish
.
getLength
()
*
fish
.
getAmount
();
}
}
...
...
@@ -436,7 +437,7 @@ public class ReproduceAndSurviveAfterReproductionWithDiagnose extends AquaNismsG
}
// the last Super indivial could be larger to include remainging fish
remainingFish
=
numberOfMaleRecruit
-
numberOfsuperIndividual
*
effectiveAmount
;
group
.
addAquaNism
(
new
DiadromousFish
(
group
.
getPilot
(),
riverBasin
,
initialLength
,
effectiveAmount
+
remainingFish
,
Gender
.
FE
MALE
));
group
.
addAquaNism
(
new
DiadromousFish
(
group
.
getPilot
(),
riverBasin
,
initialLength
,
effectiveAmount
+
remainingFish
,
Gender
.
MALE
));
// ----------------------------------------------
// keep information when reproduction with success
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment