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")){