Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationState.java @ 9620:26e113e8224f
Nachtrag Pos. 20: flood duration calculation for multiple infrastructure groups/types,
local class FloodDurationCalculationResult.Infrastructure renamed and extracted into own class
author | mschaefer |
---|---|
date | Thu, 10 Oct 2019 17:11:54 +0200 |
parents | d889ffe2fb05 |
children | 6ecd1a28017f |
comparison
equal
deleted
inserted
replaced
9619:63bbd5e45839 | 9620:26e113e8224f |
---|---|
25 import org.dive4elements.river.artifacts.model.EmptyFacet; | 25 import org.dive4elements.river.artifacts.model.EmptyFacet; |
26 import org.dive4elements.river.artifacts.model.FacetTypes; | 26 import org.dive4elements.river.artifacts.model.FacetTypes; |
27 import org.dive4elements.river.artifacts.model.ReportFacet; | 27 import org.dive4elements.river.artifacts.model.ReportFacet; |
28 import org.dive4elements.river.artifacts.resources.Resources; | 28 import org.dive4elements.river.artifacts.resources.Resources; |
29 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; | 29 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; |
30 import org.dive4elements.river.artifacts.sinfo.flood_duration.FloodDurationCalculationResult.Infrastructure; | |
31 import org.dive4elements.river.artifacts.states.DefaultState; | 30 import org.dive4elements.river.artifacts.states.DefaultState; |
32 import org.dive4elements.river.model.Attribute.AttributeKey; | 31 import org.dive4elements.river.model.Attribute.AttributeKey; |
33 | 32 |
34 /** | 33 /** |
35 * Last state of the S-Info flood duration workflow that calculates and outputs the result | 34 * Last state of the S-Info flood duration workflow that calculates and outputs the result |
126 facets.add(FloodDurationCurveProcessor.createInfrastructureFacet(context, hash, this.id, result, themeCount++, resultIndex, true, riversideC)); | 125 facets.add(FloodDurationCurveProcessor.createInfrastructureFacet(context, hash, this.id, result, themeCount++, resultIndex, true, riversideC)); |
127 | 126 |
128 facets.add(FloodDurationCurveProcessor.createInfrastructureFacet(context, hash, this.id, result, themeCount++, resultIndex, false, riversideC)); | 127 facets.add(FloodDurationCurveProcessor.createInfrastructureFacet(context, hash, this.id, result, themeCount++, resultIndex, false, riversideC)); |
129 } | 128 } |
130 | 129 |
131 final Set<Infrastructure> infrastructures = result.getInfrastructureMap(); | 130 final Set<FloodDurationInfrastructureChoice> infrastructures = result.getInfrastructureMap(); |
132 for (final Infrastructure entry : infrastructures) { | 131 for (final FloodDurationInfrastructureChoice entry : infrastructures) { |
133 | 132 |
134 facets.add(FloodDurationProcessor.createFloodDurationFacet(context, hash, this.id, result, themeCount++, resultIndex, entry)); | 133 facets.add(FloodDurationProcessor.createFloodDurationFacet(context, hash, this.id, result, themeCount++, resultIndex, entry)); |
135 | 134 |
136 facets.add(FloodHeightProcessor.createFloodHeightFacet(context, hash, this.id, result, themeCount++, resultIndex, entry)); | 135 facets.add(FloodHeightProcessor.createFloodHeightFacet(context, hash, this.id, result, themeCount++, resultIndex, entry)); |
137 } | 136 } |