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

move EasyABS and EsayRun into analysis

parent 7e0f088b
...@@ -14,10 +14,11 @@ ...@@ -14,10 +14,11 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package miscellaneous; package analysis;
import fr.cemagref.simaqualife.extensions.pilot.BatchRunner; import fr.cemagref.simaqualife.extensions.pilot.BatchRunner;
import fr.cemagref.simaqualife.pilot.Pilot; import fr.cemagref.simaqualife.pilot.Pilot;
import miscellaneous.ReflectUtils;
public class EasyABC { public class EasyABC {
......
...@@ -14,12 +14,14 @@ ...@@ -14,12 +14,14 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
package miscellaneous; package analysis;
import java.util.Arrays;
import java.util.List; import java.util.List;
import fr.cemagref.simaqualife.extensions.pilot.BatchRunner; import fr.cemagref.simaqualife.extensions.pilot.BatchRunner;
import fr.cemagref.simaqualife.pilot.Pilot; import fr.cemagref.simaqualife.pilot.Pilot;
import miscellaneous.ReflectUtils;
public class EasyRun { public class EasyRun {
...@@ -68,9 +70,14 @@ public class EasyRun { ...@@ -68,9 +70,14 @@ public class EasyRun {
return (List) ReflectUtils.getValueFromPath(pilot.getAquaticWorld().getAquaNismsGroupsList().get(0), targetPath); 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 { ...@@ -92,13 +99,13 @@ public class EasyRun {
runSimulation(batchArguments, "tsointsoin", parameterNames, parameterValues); runSimulation(batchArguments, "tsointsoin", parameterNames, parameterValues);
// System.out.println("\nAnalyseSpawnerFeatures"); System.out.println("\nAnalyseSpawnerFeatures");
// System.out.println("basin_id, female_mean_age, male_mean_age, percent_primiparous"); System.out.println("basin_id, female_mean_age, male_mean_age, percent_primiparous");
// double[][] spawnerRunResults = getValuesFromAquanismGroupProcess("processes.processesEachStep.8.exportToR"); String[][] spawnerRunResults = getValuesFromAquanismGroupProcess("processes.processesEachStep.8.exportToR");
// for (double[] result : spawnerRunResults) { for (String[] result : spawnerRunResults) {
// System.out.println(Arrays.toString(result)); System.out.println(Arrays.toString(result));
// } }
//
// System.out.println("\nAnalyseFishDistribution"); // System.out.println("\nAnalyseFishDistribution");
// System.out.println("southern_basin_id, northern_basin_id, basin_centroid_latitude, // System.out.println("southern_basin_id, northern_basin_id, basin_centroid_latitude,
// effective_centroid_latitude"); // effective_centroid_latitude");
......
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