From 63c23b93cc183c9059cc1a2b29e48781d398165f Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@bioforsk.no> Date: Fri, 17 Jan 2014 16:21:28 +0100 Subject: [PATCH] Added threshold values to result --- .../no/bioforsk/vips/model/applescabmodel/AppleScabModel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/no/bioforsk/vips/model/applescabmodel/AppleScabModel.java b/src/main/java/no/bioforsk/vips/model/applescabmodel/AppleScabModel.java index 0a65fe6..da4a12a 100644 --- a/src/main/java/no/bioforsk/vips/model/applescabmodel/AppleScabModel.java +++ b/src/main/java/no/bioforsk/vips/model/applescabmodel/AppleScabModel.java @@ -119,6 +119,10 @@ public class AppleScabModel extends I18nImpl implements Model{ { Result result = new ResultImpl(); result.setResultValidTime(timeStamp); + + result.setValue(CommonNamespaces.NS_FORECAST, "THRESHOLD_LOW", MILLS_THRESHOLD_YELLOW_WARNING.toString()); + result.setValue(CommonNamespaces.NS_FORECAST, "THRESHOLD_HIGH", MILLS_THRESHOLD_RED_WARNING.toString()); + result.setValue(this.getModelId().toString(), AppleScabCalculations.ASCOSPORE_MATURITY, this.calculations.getParamDoubleValueForDate(timeStamp, AppleScabCalculations.ASCOSPORE_MATURITY) != null ? String.valueOf(this.calculations.getParamDoubleValueForDate(timeStamp, AppleScabCalculations.ASCOSPORE_MATURITY)) : ""); result.setValue(this.getModelId().toString(), AppleScabCalculations.ACCUMULATED_MILLS, String.valueOf(this.calculations.getParamDoubleValueForDate(timeStamp, AppleScabCalculations.ACCUMULATED_MILLS))); result.setValue(CommonNamespaces.NS_WEATHER, AppleScabCalculations.TM, String.valueOf(this.calculations.getParamDoubleValueForDate(timeStamp, AppleScabCalculations.TM))); -- GitLab