Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Model_MAMESTRABR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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_MAMESTRABR
Commits
2241903b
Commit
2241903b
authored
9 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Model adjustments
parent
77162b44
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/nibio/vips/model/mamestrabrassicaemodel/MamestraBrassicaeModel.java
+19
-3
19 additions, 3 deletions
.../model/mamestrabrassicaemodel/MamestraBrassicaeModel.java
with
19 additions
and
3 deletions
src/main/java/no/nibio/vips/model/mamestrabrassicaemodel/MamestraBrassicaeModel.java
+
19
−
3
View file @
2241903b
...
@@ -143,7 +143,7 @@ public class MamestraBrassicaeModel extends I18nImpl implements Model{
...
@@ -143,7 +143,7 @@ public class MamestraBrassicaeModel extends I18nImpl implements Model{
public
String
getLicense
()
{
public
String
getLicense
()
{
return
"Copyright (c) 2016 NIBIO <http://www.nibio.no/>. \n"
+
return
"Copyright (c) 2016 NIBIO <http://www.nibio.no/>. \n"
+
"\n"
+
"\n"
+
"This file is part of
LygusRugulipennis
Model. \n"
+
"This file is part of
MamestraBrassicae
Model. \n"
+
"MamestraBrassicaeModel is free software: you can redistribute it and/or modify \n"
+
"MamestraBrassicaeModel is free software: you can redistribute it and/or modify \n"
+
"it under the terms of the NIBIO Open Source License as published by \n"
+
"it under the terms of the NIBIO Open Source License as published by \n"
+
"NIBIO, either version 1 of the License, or (at your option) any \n"
+
"NIBIO, either version 1 of the License, or (at your option) any \n"
+
...
@@ -343,13 +343,16 @@ public class MamestraBrassicaeModel extends I18nImpl implements Model{
...
@@ -343,13 +343,16 @@ public class MamestraBrassicaeModel extends I18nImpl implements Model{
}
}
private
Integer
getWarningStatus
(
Double
accumulatedDayDegrees
)
{
private
Integer
getWarningStatus
(
Double
accumulatedDayDegrees
)
{
if
(
accumulatedDayDegrees
<
THRESHOLD_TMDD_PUPAE
)
if
(
accumulatedDayDegrees
<
THRESHOLD_TMDD_PUPAE
+
THRESHOLD_TMDD_EGG_DEPOSIT
)
{
{
return
Result
.
WARNING_STATUS_NO_RISK
;
return
Result
.
WARNING_STATUS_NO_RISK
;
}
}
else
if
(
accumulatedDayDegrees
<
else
if
(
accumulatedDayDegrees
<
THRESHOLD_TMDD_PUPAE
THRESHOLD_TMDD_PUPAE
+
THRESHOLD_TMDD_EGG_DEPOSIT
+
THRESHOLD_TMDD_EGG_DEPOSIT
+
THRESHOLD_TMDD_EGG_HATCH
+
THRESHOLD_TMDD_LARVAE_1
)
)
{
{
return
Result
.
WARNING_STATUS_MINOR_RISK
;
return
Result
.
WARNING_STATUS_MINOR_RISK
;
...
@@ -365,6 +368,19 @@ public class MamestraBrassicaeModel extends I18nImpl implements Model{
...
@@ -365,6 +368,19 @@ public class MamestraBrassicaeModel extends I18nImpl implements Model{
{
{
return
Result
.
WARNING_STATUS_HIGH_RISK
;
return
Result
.
WARNING_STATUS_HIGH_RISK
;
}
}
else
if
(
accumulatedDayDegrees
<
THRESHOLD_TMDD_PUPAE
+
THRESHOLD_TMDD_EGG_DEPOSIT
+
THRESHOLD_TMDD_EGG_HATCH
+
THRESHOLD_TMDD_LARVAE_1
+
THRESHOLD_TMDD_LARVAE_2
+
THRESHOLD_TMDD_LARVAE_3
+
THRESHOLD_TMDD_LARVAE_4
+
THRESHOLD_TMDD_LARVAE_5
)
{
return
Result
.
WARNING_STATUS_MINOR_RISK
;
}
else
else
{
{
return
Result
.
WARNING_STATUS_NO_WARNING
;
return
Result
.
WARNING_STATUS_NO_WARNING
;
...
@@ -373,7 +389,7 @@ public class MamestraBrassicaeModel extends I18nImpl implements Model{
...
@@ -373,7 +389,7 @@ public class MamestraBrassicaeModel extends I18nImpl implements Model{
private
void
setAllThresholds
(
Result
result
)
{
private
void
setAllThresholds
(
Result
result
)
{
result
.
setValue
(
this
.
getModelId
().
toString
(),
"SWARMING_START"
,
String
.
valueOf
(
THRESHOLD_TMDD_PUPAE
));
result
.
setValue
(
this
.
getModelId
().
toString
(),
"SWARMING_START"
,
String
.
valueOf
(
THRESHOLD_TMDD_PUPAE
));
result
.
setValue
(
this
.
getModelId
().
toString
(),
"EGG_
HATCH
_START"
,
String
.
valueOf
(
THRESHOLD_TMDD_PUPAE
+
THRESHOLD_TMDD_EGG_DEPOSIT
));
result
.
setValue
(
this
.
getModelId
().
toString
(),
"EGG_
DEPOSIT
_START"
,
String
.
valueOf
(
THRESHOLD_TMDD_PUPAE
+
THRESHOLD_TMDD_EGG_DEPOSIT
));
result
.
setValue
(
this
.
getModelId
().
toString
(),
"TREATMENT_OPTIMUM"
,
String
.
valueOf
(
result
.
setValue
(
this
.
getModelId
().
toString
(),
"TREATMENT_OPTIMUM"
,
String
.
valueOf
(
THRESHOLD_TMDD_PUPAE
THRESHOLD_TMDD_PUPAE
+
THRESHOLD_TMDD_EGG_DEPOSIT
+
THRESHOLD_TMDD_EGG_DEPOSIT
...
...
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