diff --git a/README.md b/README.md index f144993980dcca6846af71f0f45e6f3a005851a7..38b3c44d4470804da0046d17a58f001bb61e7844 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -Model_MAIZEPHENO +Model_GENPHENOLO diff --git a/pom.xml b/pom.xml index 48299e2556df88e522b10bb16e6c4ca8afa2d3e4..b2abb13f3c9389bdb9380421123aa4bef28fa967 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>no.nibio.vips.model</groupId> - <artifactId>Model_PHYNOLOGYM</artifactId> + <artifactId>Model_GENPHENOLO</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <dependencies> @@ -35,5 +35,5 @@ <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> </properties> - <name>Model_PHYNOLOGYM</name> + <name>Model_GENPHENOLO</name> </project> \ No newline at end of file diff --git a/src/main/java/no/nibio/vips/model/phenology/DataMatrix.java b/src/main/java/no/nibio/vips/model/phenology/DataMatrix.java index 0e3b00ea2a25a467d1b79b83fe722ea8803b2cf2..cf71c8df9aaff60bf44c69438453e28e9ecc3484 100644 --- a/src/main/java/no/nibio/vips/model/phenology/DataMatrix.java +++ b/src/main/java/no/nibio/vips/model/phenology/DataMatrix.java @@ -1,7 +1,19 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. +/** + Copyright (c) 2021 NIBIO <http://www.nibio.no/>. + + This file is part of Model_GENPHENOLO. + Model_GENPHENOLO is free software: you can redistribute it and/or modify + it under the terms of the NIBIO Open Source License as published by + NIBIO, either version 1 of the License, or (at your option) any + later version. + + Model_GENPHENOLO is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + NIBIO Open Source License for more details. + + You should have received a copy of the NIBIO Open Source License + along with Model_GENPHENOLO. If not, see <http://www.nibio.no/licenses/>. */ package no.nibio.vips.model.phenology; @@ -9,7 +21,8 @@ import no.nibio.vips.util.DateMap; /** * - * @author wildfly + * @author Bhabesh Bhabani Mukhopadyay + * @author Tor-Einar Skog <tor-einar.skog@nibio.no> */ public class DataMatrix extends DateMap { diff --git a/src/main/java/no/nibio/vips/model/phenology/PhenologyModel.java b/src/main/java/no/nibio/vips/model/phenology/PhenologyModel.java index f53448b83f388efb50d9c4275e7e20382f377cc0..8ff0efafce9fba67039a76c0f1d6e9ddbe5f4265 100644 --- a/src/main/java/no/nibio/vips/model/phenology/PhenologyModel.java +++ b/src/main/java/no/nibio/vips/model/phenology/PhenologyModel.java @@ -1,22 +1,19 @@ -/* - * - -Copyright (c) 2020 NIBIO <http://www.nibio.no/>. - -This file is part of PhenologyModel. -AlternariaModel is free software: you can redistribute it and/or modify -it under the terms of the NIBIO Open Source License as published by -NIBIO, either version 1 of the License, or (at your option) any -later version. +/** + Copyright (c) 2021 NIBIO <http://www.nibio.no/>. -AlternariaModel is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -NIBIO Open Source License for more details. + This file is part of Model_GENPHENOLO. + Model_GENPHENOLO is free software: you can redistribute it and/or modify + it under the terms of the NIBIO Open Source License as published by + NIBIO, either version 1 of the License, or (at your option) any + later version. -You should have received a copy of the NIBIO Open Source License -along with AlternariaModel. If not, see <http://www.nibio.no/licenses/>. + Model_GENPHENOLO is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + NIBIO Open Source License for more details. + You should have received a copy of the NIBIO Open Source License + along with Model_GENPHENOLO. If not, see <http://www.nibio.no/licenses/>. */ package no.nibio.vips.model.phenology; @@ -48,12 +45,12 @@ import no.nibio.vips.util.WeatherUtil; /** * - * @author Bhabesh - * Creation Date : + * @author Bhabesh Bhabani Mukhopadyay + * @author Tor-Einar Skog <tor-einar.skog@nibio.no> */ public class PhenologyModel extends I18nImpl implements Model{ - public final static String NAME_MODEL_ID = "PHENOLOGYM"; + public final static String NAME_MODEL_ID = "GENPHENOLO"; public final static ModelId MODEL_ID = new ModelId(NAME_MODEL_ID); private final ModelUtil modelUtil; @@ -194,7 +191,7 @@ public class PhenologyModel extends I18nImpl implements Model{ @Override public String getCopyright() { - return "(c) 2020 NIBIO (http://www.nibio.no/). Contact: post@nibio.no"; + return "(c) 2021 NIBIO (http://www.nibio.no/). Contact: post@nibio.no"; } @Override @@ -249,11 +246,11 @@ public class PhenologyModel extends I18nImpl implements Model{ config.getConfigParameter("observations") , new TypeReference<List<WeatherObservation>>(){} ); - List<WeatherObservation> fawWeatherLIstHourly_tm = new ArrayList<WeatherObservation>(); - Map <Date, WeatherObservation> fawWeatherMapHourly_tx = new HashMap<Date, WeatherObservation> (); - Map <Date, WeatherObservation> fawWeatherMapHourly_tn = new HashMap<Date, WeatherObservation> (); - Map <Date, WeatherObservation> fawWeatherMapDaily_tx = new HashMap<Date, WeatherObservation> (); - Map <Date, WeatherObservation> fawWeatherMapDaily_tn = new HashMap<Date, WeatherObservation> (); + List<WeatherObservation> fawWeatherLIstHourly_tm = new ArrayList<>(); + Map <Date, WeatherObservation> fawWeatherMapHourly_tx = new HashMap<> (); + Map <Date, WeatherObservation> fawWeatherMapHourly_tn = new HashMap<> (); + Map <Date, WeatherObservation> fawWeatherMapDaily_tx = new HashMap<> (); + Map <Date, WeatherObservation> fawWeatherMapDaily_tn = new HashMap<> (); PhenologyModelStore modelStore = PhenologyModelStore.getInstance(); @@ -521,7 +518,7 @@ public class PhenologyModel extends I18nImpl implements Model{ /** - * Get a trimmed date without hour,minute,second,milli second + * Get a trimmed date without hour,minute,second,millisecond * @param date * @return */ diff --git a/src/main/java/no/nibio/vips/model/phenology/PhenologyModelStore.java b/src/main/java/no/nibio/vips/model/phenology/PhenologyModelStore.java index 44cb30f3c9b1cc5e8069492eacd76307566dad48..b5853cba6391322c335804ce164b7d49552f5ea3 100644 --- a/src/main/java/no/nibio/vips/model/phenology/PhenologyModelStore.java +++ b/src/main/java/no/nibio/vips/model/phenology/PhenologyModelStore.java @@ -1,13 +1,26 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. +/** + Copyright (c) 2021 NIBIO <http://www.nibio.no/>. + + This file is part of Model_GENPHENOLO. + Model_GENPHENOLO is free software: you can redistribute it and/or modify + it under the terms of the NIBIO Open Source License as published by + NIBIO, either version 1 of the License, or (at your option) any + later version. + + Model_GENPHENOLO is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + NIBIO Open Source License for more details. + + You should have received a copy of the NIBIO Open Source License + along with Model_GENPHENOLO. If not, see <http://www.nibio.no/licenses/>. */ package no.nibio.vips.model.phenology; /** * - * @author wildfly + * @author Bhabesh Bhabani Mukhopadyay + * @author Tor-Einar Skog <tor-einar.skog@nibio.no> */ public class PhenologyModelStore { diff --git a/src/main/java/no/nibio/vips/model/phenology/Plant.java b/src/main/java/no/nibio/vips/model/phenology/Plant.java index 6f406b6b098f938ae957d838023ed584b08ec392..aa68744ac3d915c9ca203e058f807499afc6390b 100644 --- a/src/main/java/no/nibio/vips/model/phenology/Plant.java +++ b/src/main/java/no/nibio/vips/model/phenology/Plant.java @@ -1,7 +1,19 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. +/** + Copyright (c) 2021 NIBIO <http://www.nibio.no/>. + + This file is part of Model_GENPHENOLO. + Model_GENPHENOLO is free software: you can redistribute it and/or modify + it under the terms of the NIBIO Open Source License as published by + NIBIO, either version 1 of the License, or (at your option) any + later version. + + Model_GENPHENOLO is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + NIBIO Open Source License for more details. + + You should have received a copy of the NIBIO Open Source License + along with Model_GENPHENOLO. If not, see <http://www.nibio.no/licenses/>. */ package no.nibio.vips.model.phenology; @@ -10,7 +22,8 @@ import java.util.List; /** * - * @author wildfly + * @author Bhabesh Bhabani Mukhopadyay + * @author Tor-Einar Skog <tor-einar.skog@nibio.no> */ public class Plant { private String speciesLatinName; diff --git a/src/main/java/no/nibio/vips/model/phenology/Plantation.java b/src/main/java/no/nibio/vips/model/phenology/Plantation.java index 3bb84254a07a25c7537c1387c66532f4e03a9ec5..167ad6b0f30bb2e19cafb2075312837e90a2af7a 100644 --- a/src/main/java/no/nibio/vips/model/phenology/Plantation.java +++ b/src/main/java/no/nibio/vips/model/phenology/Plantation.java @@ -1,15 +1,26 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. +/** + Copyright (c) 2021 NIBIO <http://www.nibio.no/>. + + This file is part of Model_GENPHENOLO. + Model_GENPHENOLO is free software: you can redistribute it and/or modify + it under the terms of the NIBIO Open Source License as published by + NIBIO, either version 1 of the License, or (at your option) any + later version. + + Model_GENPHENOLO is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + NIBIO Open Source License for more details. + + You should have received a copy of the NIBIO Open Source License + along with Model_GENPHENOLO. If not, see <http://www.nibio.no/licenses/>. */ package no.nibio.vips.model.phenology; -import java.util.Date; - /** * - * @author wildfly + * @author Bhabesh Bhabani Mukhopadyay + * @author Tor-Einar Skog <tor-einar.skog@nibio.no> */ public class Plantation { private String typeName;