Skip to content
Snippets Groups Projects
Commit af935338 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Updated GraalVM dependencies

parent a5b1fb57
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,5 @@ Any value defined here will override the pom.xml file value but is only applicab ...@@ -15,6 +15,5 @@ Any value defined here will override the pom.xml file value but is only applicab
--> -->
<netbeans.hint.license>default_1</netbeans.hint.license> <netbeans.hint.license>default_1</netbeans.hint.license>
<org-netbeans-modules-javascript2-editor.jsversion>ECMA5</org-netbeans-modules-javascript2-editor.jsversion> <org-netbeans-modules-javascript2-editor.jsversion>ECMA5</org-netbeans-modules-javascript2-editor.jsversion>
<netbeans.hint.jdkPlatform>JDK_1.8__GraalVM_1.0_</netbeans.hint.jdkPlatform>
</properties> </properties>
</project-shared-configuration> </project-shared-configuration>
...@@ -30,11 +30,22 @@ ...@@ -30,11 +30,22 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.graalvm.sdk</groupId> <groupId>org.graalvm.js</groupId>
<artifactId>graal-sdk</artifactId> <artifactId>js</artifactId>
<version>1.0.0-rc12</version> <version>1.0.0-rc16</version>
</dependency> </dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId>
<version>1.0.0-rc16</version>
</dependency>
<dependency>
<groupId>org.graalvm.truffle</groupId>
<artifactId>truffle-api</artifactId>
<version>1.0.0-rc16</version>
</dependency>
<dependency> <dependency>
<groupId>com.eclipsesource.j2v8</groupId> <groupId>com.eclipsesource.j2v8</groupId>
<artifactId>j2v8_linux_x86_64</artifactId> <artifactId>j2v8_linux_x86_64</artifactId>
...@@ -48,6 +59,11 @@ ...@@ -48,6 +59,11 @@
<scope>test</scope> <scope>test</scope>
<version>4.11</version> <version>4.11</version>
</dependency> </dependency>
<dependency>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j</artifactId>
<version>65.1</version>
</dependency>
</dependencies> </dependencies>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
......
...@@ -53,7 +53,7 @@ public class FallArmywormModel extends I18nImpl implements Model{ ...@@ -53,7 +53,7 @@ public class FallArmywormModel extends I18nImpl implements Model{
private final Map<String, Double> INTERCROPPING_RISK_REDUCTION; private final Map<String, Double> INTERCROPPING_RISK_REDUCTION;
Integer RISK_THRESHOLD_HIGH = 50; Integer RISK_THRESHOLD_HIGH = 50;
Double OBSERVATIONS_10KM_ABSCENCE_RISK_REDUCTION = 10d/100; // 10% risk reduction if no observations within 10km Double OBSERVATIONS_10KM_ABSCENCE_RISK_REDUCTION = 10d/100; // 10% risk reduction if no observations within 10km
Double OBSERVATIONS_25KM_ABSCENCE_RISK_REDUCTION = 70d/100; // 60% risk reduction if no observations within 25km Double OBSERVATIONS_25KM_ABSCENCE_RISK_REDUCTION = 70d/100; // 70% risk reduction if no observations within 25km
public final static ModelId MODEL_ID = new ModelId("FAWMODEL01"); public final static ModelId MODEL_ID = new ModelId("FAWMODEL01");
private final ModelUtil modelUtil; private final ModelUtil modelUtil;
...@@ -67,6 +67,7 @@ public class FallArmywormModel extends I18nImpl implements Model{ ...@@ -67,6 +67,7 @@ public class FallArmywormModel extends I18nImpl implements Model{
INTERCROPPING_RISK_REDUCTION.put("BEANS/DESMODIUM", 30d/100); INTERCROPPING_RISK_REDUCTION.put("BEANS/DESMODIUM", 30d/100);
} }
@Override
public List<Result> getResult() throws ModelExcecutionException { public List<Result> getResult() throws ModelExcecutionException {
List<Result> resultList = new ArrayList<>(); List<Result> resultList = new ArrayList<>();
Calendar cal = Calendar.getInstance(timeZone); Calendar cal = Calendar.getInstance(timeZone);
...@@ -247,7 +248,7 @@ public class FallArmywormModel extends I18nImpl implements Model{ ...@@ -247,7 +248,7 @@ public class FallArmywormModel extends I18nImpl implements Model{
if(config.getConfigParameter("observations10kmLast3Months") == null || config.getConfigParameter("observations25kmLast3Months") == null) if(config.getConfigParameter("observations10kmLast3Months") == null || config.getConfigParameter("observations25kmLast3Months") == null)
{ {
Map<Integer, Integer> observations = this.getFAWObservations(Double.valueOf((String) config.getConfigParameter("longitude")), Double.valueOf((String)config.getConfigParameter("longitude"))); Map<Integer, Integer> observations = this.getFAWObservations(Double.valueOf((String) config.getConfigParameter("longitude")), Double.valueOf((String)config.getConfigParameter("latitude")));
if(config.getConfigParameter("observations10kmLast3Months") == null) if(config.getConfigParameter("observations10kmLast3Months") == null)
{ {
config.setConfigParameter("observations10kmLast3Months", observations.get(10)); config.setConfigParameter("observations10kmLast3Months", observations.get(10));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment