Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/InfrastructureResultFacet.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 | f8308db94634 |
children |
comparison
equal
deleted
inserted
replaced
9619:63bbd5e45839 | 9620:26e113e8224f |
---|---|
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 org.dive4elements.river.artifacts.common.ResultFacet; | 12 import org.dive4elements.river.artifacts.common.ResultFacet; |
13 import org.dive4elements.river.artifacts.sinfo.flood_duration.FloodDurationCalculationResult.Infrastructure; | |
14 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; | 13 import org.dive4elements.river.artifacts.states.DefaultState.ComputeType; |
15 | 14 |
16 /** | 15 /** |
17 * @author Domenico Nardi Tironi | 16 * @author Domenico Nardi Tironi |
18 * | 17 * |
19 */ | 18 */ |
20 public class InfrastructureResultFacet extends ResultFacet { | 19 public class InfrastructureResultFacet extends ResultFacet { |
21 | 20 |
22 private static final long serialVersionUID = 1L; | 21 private static final long serialVersionUID = 1L; |
23 | 22 |
24 private final Infrastructure m_infrastructure; | 23 private final FloodDurationInfrastructureChoice m_infrastructure; |
25 | 24 |
26 public InfrastructureResultFacet(final int facetIndex, final int resultIndex, final String name, final String description, final String axisLabel, | 25 public InfrastructureResultFacet(final int facetIndex, final int resultIndex, final String name, final String description, final String axisLabel, |
27 final String id, final String hash, final Infrastructure infrastructure) { | 26 final String id, final String hash, final FloodDurationInfrastructureChoice infrastructure) { |
28 super(facetIndex, resultIndex, name, description, axisLabel, ComputeType.ADVANCE, id, hash); | 27 super(facetIndex, resultIndex, name, description, axisLabel, ComputeType.ADVANCE, id, hash); |
29 this.m_infrastructure = infrastructure; | 28 this.m_infrastructure = infrastructure; |
30 } | 29 } |
31 | 30 |
32 public Infrastructure getInfrastructure() { | 31 public FloodDurationInfrastructureChoice getInfrastructure() { |
33 return this.m_infrastructure; | 32 return this.m_infrastructure; |
34 } | 33 } |
35 } | 34 } |