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
fd6eea4d
Commit
fd6eea4d
authored
Apr 18, 2021
by
patrick.lambert
Browse files
remove unused method
parent
8e15f57c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/environment/Basin.java
View file @
fd6eea4d
...
...
@@ -105,13 +105,6 @@ public class Basin implements Position, Comparable<Basin> {
*/
private
Map
<
DiadromousFishGroup
,
List
<
DiadromousFish
>>
fishPerGroup
;
/**
* effective of fish present in the basin for each group
*
* @unit
*/
private
Map
<
DiadromousFishGroup
,
Long
>
effectivePerGroup
;
public
Basin
(
int
id
,
String
name
,
double
winterTemperature
,
double
springTemperature
,
double
summerTemperature
,
double
fallTemperature
)
{
this
.
id
=
id
;
...
...
@@ -124,7 +117,6 @@ public class Basin implements Position, Comparable<Basin> {
this
.
shape
=
new
Path2D
.
Double
();
fishPerGroup
=
new
TreeMap
<
DiadromousFishGroup
,
List
<
DiadromousFish
>>();
effectivePerGroup
=
new
TreeMap
<
DiadromousFishGroup
,
Long
>();
neighboursDistances
=
new
TreeMap
<
Basin
,
Double
>();
}
...
...
@@ -136,7 +128,7 @@ public class Basin implements Position, Comparable<Basin> {
this
.
shape
=
new
Path2D
.
Double
();
fishPerGroup
=
new
TreeMap
<
DiadromousFishGroup
,
List
<
DiadromousFish
>>();
effectivePerGroup
=
new
TreeMap
<
DiadromousFishGroup
,
Long
>();
neighboursDistances
=
new
TreeMap
<
Basin
,
Double
>();
}
...
...
@@ -187,18 +179,6 @@ public class Basin implements Position, Comparable<Basin> {
}
@Deprecated
public
void
updateEffective
()
{
for
(
DiadromousFishGroup
group
:
fishPerGroup
.
keySet
())
{
long
eff
=
0
;
for
(
DiadromousFish
fish
:
fishPerGroup
.
get
(
group
))
{
eff
+=
fish
.
getAmount
();
}
effectivePerGroup
.
put
(
group
,
eff
);
}
}
public
Map
<
DiadromousFishGroup
,
List
<
DiadromousFish
>>
getFishPerGroup
()
{
return
fishPerGroup
;
}
...
...
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