From cae6f950ad6cd80c0ea6402d0115f47683ecb762 Mon Sep 17 00:00:00 2001 From: Gian-Andrea Hutter Date: Mon, 28 Nov 2022 10:20:00 +0100 Subject: [PATCH] #23 comments added --- .../ch/zhaw/gartenverwaltung/io/WeatherGradenTaskPlanner.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/zhaw/gartenverwaltung/io/WeatherGradenTaskPlanner.java b/src/main/java/ch/zhaw/gartenverwaltung/io/WeatherGradenTaskPlanner.java index 1e13b74..9e14a03 100644 --- a/src/main/java/ch/zhaw/gartenverwaltung/io/WeatherGradenTaskPlanner.java +++ b/src/main/java/ch/zhaw/gartenverwaltung/io/WeatherGradenTaskPlanner.java @@ -73,6 +73,7 @@ public class WeatherGradenTaskPlanner { for (Crop crop : cropList.getCrops()) { Plant plant = plantList.getPlantById(HardinessZone.ZONE_8A,crop.getPlantId()).orElseThrow(PlantNotFoundException::new); + // nur für aktuelle growthphase for (GrowthPhase growthphase : plant.lifecycle()) { if(growthphase.wateringCycle().litersPerSqM() < rainAmount){ @@ -82,7 +83,7 @@ public class WeatherGradenTaskPlanner { } } - +// vom startdatum abhängig, private void adjustNextExecutionOfWateringTask(List cropTaskList){ for(Task task : cropTaskList){ if(task.getName().equals("watering task")){