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
f1a0aa4c
Commit
f1a0aa4c
authored
Jul 02, 2020
by
Lambert Patrick
Browse files
rempce deprecated map
parent
716702b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/species/DisperseAndMigrateToRiverBasic.java
View file @
f1a0aa4c
...
...
@@ -87,13 +87,6 @@ public class DisperseAndMigrateToRiverBasic extends AquaNismsGroupProcess<Diadro
protected
transient
Map
<
SeaBasin
,
Map
<
RiverBasin
,
Double
>>
basinWeightsPerBasin
;
/**
* a map associtaing a sea bassin with the distance for each river bassin <key> SeaBasin <value> <key> RiverBasin
* <value> distance between the river Basin and the river basin associated with the sea basin
*/
// @Deprecated
// protected transient Map<SeaBasin, Map<RiverBasin, Double>> basinDistancesPerBasin;
@Override
@InitTransientParameters
public
void
initTransientParameters
(
Pilot
pilot
)
{
...
...
@@ -112,14 +105,12 @@ public class DisperseAndMigrateToRiverBasic extends AquaNismsGroupProcess<Diadro
for
(
Entry
<
Basin
,
Double
>
entry
:
seaBas
.
getNeighboursDistances
().
entrySet
())
{
associatedRiverBasin
=
(
environment
.
RiverBasin
)
entry
.
getKey
();
// RiverBasin associatedRiverBasin = (RiverBasin) bn.getAssociatedRiverBasin(entry.getKey());
double
weight
=
alpha0Rep
-
alpha1Rep
*
((
entry
.
getValue
()
-
meanInterDistance
)
/
standardDeviationInterDistance
)
+
alpha3Rep
*
((
associatedRiverBasin
.
getAttractiveSurface
()
-
meanBvSurface
)
/
standardDeviationBvSurface
);
mapWeight
.
put
(
associatedRiverBasin
,
weight
);
}
basinWeightsPerBasin
.
put
(
seaBas
,
mapWeight
);
}
...
...
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