Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Model_FAWMODEL01
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
Models
Java
Model_FAWMODEL01
Commits
af935338
Commit
af935338
authored
5 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Updated GraalVM dependencies
parent
a5b1fb57
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
nb-configuration.xml
+0
-1
0 additions, 1 deletion
nb-configuration.xml
pom.xml
+20
-4
20 additions, 4 deletions
pom.xml
src/main/java/no/nibio/vips/model/fallarmywormmodel/FallArmywormModel.java
+3
-2
3 additions, 2 deletions
...nibio/vips/model/fallarmywormmodel/FallArmywormModel.java
with
23 additions
and
7 deletions
nb-configuration.xml
+
0
−
1
View file @
af935338
...
@@ -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>
This diff is collapsed.
Click to expand it.
pom.xml
+
20
−
4
View file @
af935338
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/no/nibio/vips/model/fallarmywormmodel/FallArmywormModel.java
+
3
−
2
View file @
af935338
...
@@ -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
=
10
d
/
100
;
// 10% risk reduction if no observations within 10km
Double
OBSERVATIONS_10KM_ABSCENCE_RISK_REDUCTION
=
10
d
/
100
;
// 10% risk reduction if no observations within 10km
Double
OBSERVATIONS_25KM_ABSCENCE_RISK_REDUCTION
=
70
d
/
100
;
//
6
0% risk reduction if no observations within 25km
Double
OBSERVATIONS_25KM_ABSCENCE_RISK_REDUCTION
=
70
d
/
100
;
//
7
0% 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"
,
30
d
/
100
);
INTERCROPPING_RISK_REDUCTION
.
put
(
"BEANS/DESMODIUM"
,
30
d
/
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
(
"l
ong
itude"
)));
Map
<
Integer
,
Integer
>
observations
=
this
.
getFAWObservations
(
Double
.
valueOf
((
String
)
config
.
getConfigParameter
(
"longitude"
)),
Double
.
valueOf
((
String
)
config
.
getConfigParameter
(
"l
at
itude"
)));
if
(
config
.
getConfigParameter
(
"observations10kmLast3Months"
)
==
null
)
if
(
config
.
getConfigParameter
(
"observations10kmLast3Months"
)
==
null
)
{
{
config
.
setConfigParameter
(
"observations10kmLast3Months"
,
observations
.
get
(
10
));
config
.
setConfigParameter
(
"observations10kmLast3Months"
,
observations
.
get
(
10
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment