Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSLogic
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
VIPSLogic
Commits
a032cf5f
Commit
a032cf5f
authored
5 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: Completing transition to ForecastModelConfiguration framework
parent
69103013
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!22
Develop
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/nibio/vips/logic/service/ModelFormService.java
+17
-17
17 additions, 17 deletions
...in/java/no/nibio/vips/logic/service/ModelFormService.java
with
17 additions
and
17 deletions
src/main/java/no/nibio/vips/logic/service/ModelFormService.java
+
17
−
17
View file @
a032cf5f
...
...
@@ -88,21 +88,21 @@ public class ModelFormService {
fConf
.
setModelId
(
"SEPTORIAHU"
);
Set
<
ForecastModelConfiguration
>
fModelConf
=
new
HashSet
<>();
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"dateSpraying1"
,
dateSpraying1
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"dateSpraying2"
,
dateSpraying2
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"dateGs31"
,
dateGs31
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"date3rdUpperLeafEmerging"
,
date3rdUpperLeafEmerging
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"date2ndUpperLeafEmerging"
,
date2ndUpperLeafEmerging
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"dateUpperLeafEmerging"
,
dateUpperLeafEmerging
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"dateGs75"
,
dateGs75
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"thresholdRelativeHumidity"
,
String
.
valueOf
(
thresholdRelativeHumidity
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"thresholdLeafWetness"
,
String
.
valueOf
(
thresholdLeafWetness
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"thresholdPrecipitation"
,
String
.
valueOf
(
thresholdPrecipitation
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"slidingHoursPast"
,
String
.
valueOf
(
slidingHoursPast
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"slidingHoursAhead"
,
String
.
valueOf
(
slidingHoursAhead
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"thresholdHumidPeriodHours"
,
String
.
valueOf
(
thresholdHumidPeriodHours
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"sprayingProtectionDays"
,
String
.
valueOf
(
sprayingProtectionDays
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
"leafLifeTime"
,
String
.
valueOf
(
leafLifeTime
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"dateSpraying1"
,
dateSpraying1
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"dateSpraying2"
,
dateSpraying2
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"dateGs31"
,
dateGs31
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"date3rdUpperLeafEmerging"
,
date3rdUpperLeafEmerging
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"date2ndUpperLeafEmerging"
,
date2ndUpperLeafEmerging
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"dateUpperLeafEmerging"
,
dateUpperLeafEmerging
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"dateGs75"
,
dateGs75
));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"thresholdRelativeHumidity"
,
String
.
valueOf
(
thresholdRelativeHumidity
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"thresholdLeafWetness"
,
String
.
valueOf
(
thresholdLeafWetness
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"thresholdPrecipitation"
,
String
.
valueOf
(
thresholdPrecipitation
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"slidingHoursPast"
,
String
.
valueOf
(
slidingHoursPast
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"slidingHoursAhead"
,
String
.
valueOf
(
slidingHoursAhead
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"thresholdHumidPeriodHours"
,
String
.
valueOf
(
thresholdHumidPeriodHours
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"sprayingProtectionDays"
,
String
.
valueOf
(
sprayingProtectionDays
)));
fModelConf
.
add
(
this
.
getForecastModelConfiguration
(
fConf
.
getModelId
(),
"leafLifeTime"
,
String
.
valueOf
(
leafLifeTime
)));
fConf
.
setForecastModelConfigurationSet
(
fModelConf
);
// Data parsing
...
...
@@ -172,9 +172,9 @@ public class ModelFormService {
}
}
private
ForecastModelConfiguration
getForecastModelConfiguration
(
String
key
,
String
value
)
private
ForecastModelConfiguration
getForecastModelConfiguration
(
String
modelId
,
String
key
,
String
value
)
{
ForecastModelConfiguration
retVal
=
new
ForecastModelConfiguration
(
new
ForecastModelConfigurationPK
(-
1
,
key
));
ForecastModelConfiguration
retVal
=
new
ForecastModelConfiguration
(
new
ForecastModelConfigurationPK
(-
1
,
SessionControllerGetter
.
getForecastBean
().
getDeCamelizedFieldName
(
modelId
,
key
))
)
;
retVal
.
setParameterValue
(
value
);
return
retVal
;
}
...
...
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