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
ade535d4
Commit
ade535d4
authored
Mar 24, 2021
by
patrick.lambert
Browse files
move EasyABS and EsayRun into analysis
parent
7e0f088b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/
miscellaneou
s/EasyABC.java
→
src/main/java/
analysi
s/EasyABC.java
View file @
ade535d4
...
...
@@ -14,10 +14,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package
miscellaneou
s
;
package
analysi
s
;
import
fr.cemagref.simaqualife.extensions.pilot.BatchRunner
;
import
fr.cemagref.simaqualife.pilot.Pilot
;
import
miscellaneous.ReflectUtils
;
public
class
EasyABC
{
...
...
src/main/java/
miscellaneou
s/EasyRun.java
→
src/main/java/
analysi
s/EasyRun.java
View file @
ade535d4
...
...
@@ -14,12 +14,14 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package
miscellaneou
s
;
package
analysi
s
;
import
java.util.Arrays
;
import
java.util.List
;
import
fr.cemagref.simaqualife.extensions.pilot.BatchRunner
;
import
fr.cemagref.simaqualife.pilot.Pilot
;
import
miscellaneous.ReflectUtils
;
public
class
EasyRun
{
...
...
@@ -68,9 +70,14 @@ public class EasyRun {
return
(
List
)
ReflectUtils
.
getValueFromPath
(
pilot
.
getAquaticWorld
().
getAquaNismsGroupsList
().
get
(
0
),
targetPath
);
}
// public static double[][] getValuesFromAquanismGroupProcess(String targetPath) throws Exception {
// return (double[][]) ReflectUtils.getValueFromPath(pilot.getAquaticWorld().getAquaNismsGroupsList().get(0),
// targetPath);
// }
public
static
double
[][]
getValuesFromAquanismGroupProcess
(
String
targetPath
)
throws
Exception
{
return
(
double
[][])
ReflectUtils
.
getValueFromPath
(
pilot
.
getAquaticWorld
().
getAquaNismsGroupsList
().
get
(
0
),
targetPath
);
public
static
String
[][]
getValuesFromAquanismGroupProcess
(
String
targetPath
)
throws
Exception
{
return
(
String
[][])
ReflectUtils
.
getValueFromPath
(
pilot
.
getAquaticWorld
().
getAquaNismsGroupsList
().
get
(
0
),
targetPath
);
}
...
...
@@ -92,13 +99,13 @@ public class EasyRun {
runSimulation
(
batchArguments
,
"tsointsoin"
,
parameterNames
,
parameterValues
);
//
System.out.println("\nAnalyseSpawnerFeatures");
//
System.out.println("basin_id, female_mean_age, male_mean_age, percent_primiparous");
// double
[][] spawnerRunResults = getValuesFromAquanismGroupProcess("processes.processesEachStep.8.exportToR");
//
for (
double
[] result : spawnerRunResults) {
//
System.out.println(Arrays.toString(result));
//
}
//
System
.
out
.
println
(
"\nAnalyseSpawnerFeatures"
);
System
.
out
.
println
(
"basin_id, female_mean_age, male_mean_age, percent_primiparous"
);
String
[][]
spawnerRunResults
=
getValuesFromAquanismGroupProcess
(
"processes.processesEachStep.8.exportToR"
);
for
(
String
[]
result
:
spawnerRunResults
)
{
System
.
out
.
println
(
Arrays
.
toString
(
result
));
}
// System.out.println("\nAnalyseFishDistribution");
// System.out.println("southern_basin_id, northern_basin_id, basin_centroid_latitude,
// effective_centroid_latitude");
...
...
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