Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationCalculation.java @ 9624:02ca823ec9c6
zu Pos 20 Nachtrag; infrastructureChoice
author | dnt_bjoernsen <d.tironi@bjoernsen.de> |
---|---|
date | Fri, 11 Oct 2019 18:30:36 +0200 |
parents | 26e113e8224f |
children | 07f02019065e |
comparison
equal
deleted
inserted
replaced
9623:677ff7ed9a60 | 9624:02ca823ec9c6 |
---|---|
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 package org.dive4elements.river.artifacts.sinfo.flood_duration; | 10 package org.dive4elements.river.artifacts.sinfo.flood_duration; |
11 | 11 |
12 import java.util.List; | |
12 import java.util.Set; | 13 import java.util.Set; |
13 | 14 |
14 import org.apache.commons.lang.math.DoubleRange; | 15 import org.apache.commons.lang.math.DoubleRange; |
15 import org.dive4elements.artifacts.CallContext; | 16 import org.dive4elements.artifacts.CallContext; |
16 import org.dive4elements.river.artifacts.WINFOArtifact; | 17 import org.dive4elements.river.artifacts.WINFOArtifact; |
18 import org.dive4elements.river.artifacts.model.CalculationResult; | 19 import org.dive4elements.river.artifacts.model.CalculationResult; |
19 import org.dive4elements.river.artifacts.model.WQDay; | 20 import org.dive4elements.river.artifacts.model.WQDay; |
20 import org.dive4elements.river.artifacts.model.river.RiverInfoProvider; | 21 import org.dive4elements.river.artifacts.model.river.RiverInfoProvider; |
21 import org.dive4elements.river.artifacts.resources.Resources; | 22 import org.dive4elements.river.artifacts.resources.Resources; |
22 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; | 23 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; |
24 import org.dive4elements.river.artifacts.sinfo.flood_duration.InfrastructureServerClientXChange.Element; | |
23 import org.dive4elements.river.artifacts.sinfo.tkhstate.WinfoArtifactWrapper; | 25 import org.dive4elements.river.artifacts.sinfo.tkhstate.WinfoArtifactWrapper; |
24 import org.dive4elements.river.artifacts.sinfo.util.CalculationUtils; | 26 import org.dive4elements.river.artifacts.sinfo.util.CalculationUtils; |
25 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; | 27 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; |
26 import org.dive4elements.river.model.River; | 28 import org.dive4elements.river.model.River; |
27 import org.dive4elements.river.model.sinfo.Infrastructure; | 29 import org.dive4elements.river.model.sinfo.Infrastructure; |
75 final Calculation problems, final WINFOArtifact winfo, final FloodDurationCalculationResults results) { | 77 final Calculation problems, final WINFOArtifact winfo, final FloodDurationCalculationResults results) { |
76 | 78 |
77 final FloodDurationCalculator calculator = new FloodDurationCalculator(this.context, riverInfoProvider); | 79 final FloodDurationCalculator calculator = new FloodDurationCalculator(this.context, riverInfoProvider); |
78 | 80 |
79 // FIXME: fetch from access (fetchInfrastructureTypes only for test purposes) | 81 // FIXME: fetch from access (fetchInfrastructureTypes only for test purposes) |
82 final List<Element> infrastructureChoicesnew = access.getInfrastructureChoices(); | |
83 // int groupID =; | |
84 // int annottionTypeId =; | |
85 | |
86 // Deprecated denke ich. | |
80 final Set<String> infrastructureChoices = Infrastructure.fetchInfrastructureTypes(riverInfoProvider.getRiver(), calcRange.getMinimumDouble(), | 87 final Set<String> infrastructureChoices = Infrastructure.fetchInfrastructureTypes(riverInfoProvider.getRiver(), calcRange.getMinimumDouble(), |
81 calcRange.getMaximumDouble(), access.getRiverside().getAttributeKey()); | 88 calcRange.getMaximumDouble(), access.getRiverside().getAttributeKey()); |
82 | 89 |
83 calculator.execute(problems, label, calcRange, access.getRiverside().getAttributeKey(), infrastructureChoices, access.getIsWspl(), winfo, results); | 90 calculator.execute(problems, label, calcRange, access.getRiverside().getAttributeKey(), infrastructureChoices, access.getIsWspl(), winfo, results); |
84 } | 91 } |