From f470ab522f4343314cad05d7e4e56e1a1c7e44bd Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Fri, 8 Sep 2017 14:37:17 +0200
Subject: [PATCH] Refactoring Result object

---
 .gitignore                                                      | 0
 LICENSE.txt                                                     | 0
 nb-configuration.xml                                            | 0
 pom.xml                                                         | 0
 .../nibio/vips/model/oatfloweringmodel/OatFloweringModel.java   | 2 +-
 .../no/nibio/vips/model/oatfloweringmodel/texts.properties      | 0
 .../no/nibio/vips/model/oatfloweringmodel/texts_nb.properties   | 0
 src/test/java/OatFloweringModelTest.java                        | 0
 src/test/resources/JSONWeatherData.json                         | 0
 src/test/resources/JSONWeatherDataWithHole.json                 | 0
 10 files changed, 1 insertion(+), 1 deletion(-)
 mode change 100644 => 100755 .gitignore
 mode change 100644 => 100755 LICENSE.txt
 mode change 100644 => 100755 nb-configuration.xml
 mode change 100644 => 100755 pom.xml
 mode change 100644 => 100755 src/main/resources/no/nibio/vips/model/oatfloweringmodel/texts.properties
 mode change 100644 => 100755 src/main/resources/no/nibio/vips/model/oatfloweringmodel/texts_nb.properties
 mode change 100644 => 100755 src/test/java/OatFloweringModelTest.java
 mode change 100644 => 100755 src/test/resources/JSONWeatherData.json
 mode change 100644 => 100755 src/test/resources/JSONWeatherDataWithHole.json

diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755
diff --git a/LICENSE.txt b/LICENSE.txt
old mode 100644
new mode 100755
diff --git a/nb-configuration.xml b/nb-configuration.xml
old mode 100644
new mode 100755
diff --git a/pom.xml b/pom.xml
old mode 100644
new mode 100755
diff --git a/src/main/java/no/nibio/vips/model/oatfloweringmodel/OatFloweringModel.java b/src/main/java/no/nibio/vips/model/oatfloweringmodel/OatFloweringModel.java
index 32b82d6..0cde486 100755
--- a/src/main/java/no/nibio/vips/model/oatfloweringmodel/OatFloweringModel.java
+++ b/src/main/java/no/nibio/vips/model/oatfloweringmodel/OatFloweringModel.java
@@ -103,7 +103,7 @@ public class OatFloweringModel extends I18nImpl implements Model{
     {
         Calendar cal = Calendar.getInstance();
         Result result = new ResultImpl();
-        result.setResultValidTime(obs.getTimeMeasured());
+        result.setValidTimeStart(obs.getTimeMeasured());
         
         cal.setTime(obs.getTimeMeasured());
         result.setValue(
diff --git a/src/main/resources/no/nibio/vips/model/oatfloweringmodel/texts.properties b/src/main/resources/no/nibio/vips/model/oatfloweringmodel/texts.properties
old mode 100644
new mode 100755
diff --git a/src/main/resources/no/nibio/vips/model/oatfloweringmodel/texts_nb.properties b/src/main/resources/no/nibio/vips/model/oatfloweringmodel/texts_nb.properties
old mode 100644
new mode 100755
diff --git a/src/test/java/OatFloweringModelTest.java b/src/test/java/OatFloweringModelTest.java
old mode 100644
new mode 100755
diff --git a/src/test/resources/JSONWeatherData.json b/src/test/resources/JSONWeatherData.json
old mode 100644
new mode 100755
diff --git a/src/test/resources/JSONWeatherDataWithHole.json b/src/test/resources/JSONWeatherDataWithHole.json
old mode 100644
new mode 100755
-- 
GitLab