#23 comments added

This commit is contained in:
Gian-Andrea Hutter 2022-11-28 10:20:00 +01:00
parent 233ce6b088
commit cae6f950ad
1 changed files with 2 additions and 1 deletions

View File

@ -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<Task> cropTaskList){
for(Task task : cropTaskList){
if(task.getName().equals("watering task")){