Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationState.java @ 9376:f318359b81a2
S-Info flood duration theme rename, and more infrastructure themes in the duration curve
author | mschaefer |
---|---|
date | Fri, 03 Aug 2018 17:02:38 +0200 |
parents | e5367900dd6d |
children | f8308db94634 |
comparison
equal
deleted
inserted
replaced
9375:a0a2e68a1e11 | 9376:f318359b81a2 |
---|---|
25 import org.dive4elements.river.artifacts.model.ReportFacet; | 25 import org.dive4elements.river.artifacts.model.ReportFacet; |
26 import org.dive4elements.river.artifacts.resources.Resources; | 26 import org.dive4elements.river.artifacts.resources.Resources; |
27 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; | 27 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; |
28 import org.dive4elements.river.artifacts.sinfo.flood_duration.RiversideRadioChoice.RiversideChoiceKey; | 28 import org.dive4elements.river.artifacts.sinfo.flood_duration.RiversideRadioChoice.RiversideChoiceKey; |
29 import org.dive4elements.river.artifacts.states.DefaultState; | 29 import org.dive4elements.river.artifacts.states.DefaultState; |
30 import org.dive4elements.river.model.Attribute.AttributeKey; | |
30 | 31 |
31 /** | 32 /** |
32 * Last state of the S-Info flood duration workflow that calculates and outputs the result | 33 * Last state of the S-Info flood duration workflow that calculates and outputs the result |
33 */ | 34 */ |
34 public class FloodDurationState extends DefaultState { | 35 public class FloodDurationState extends DefaultState { |
123 facets.add(FloodDurationCurveProcessor.createMainValuesWFacet(context, hash, this.id, result, 0, resultIndex, | 124 facets.add(FloodDurationCurveProcessor.createMainValuesWFacet(context, hash, this.id, result, 0, resultIndex, |
124 Resources.getMsg(context.getMeta(), "sinfo.chart.flood_duration.curve.mainw"))); | 125 Resources.getMsg(context.getMeta(), "sinfo.chart.flood_duration.curve.mainw"))); |
125 facets.add(FloodDurationCurveProcessor.createMainValuesQFacet(context, hash, this.id, result, 1, resultIndex, | 126 facets.add(FloodDurationCurveProcessor.createMainValuesQFacet(context, hash, this.id, result, 1, resultIndex, |
126 Resources.getMsg(context.getMeta(), "sinfo.chart.flood_duration.curve.mainq"))); | 127 Resources.getMsg(context.getMeta(), "sinfo.chart.flood_duration.curve.mainq"))); |
127 } | 128 } |
128 facets.add(FloodDurationCurveProcessor.createInfrastructureWFacet(context, hash, this.id, result, 0, resultIndex, | 129 if ((access.getRiverside() == RiversideChoiceKey.LEFT) || (access.getRiverside() == RiversideChoiceKey.BOTH)) { |
129 Resources.getMsg(context.getMeta(), "sinfo.chart.flood_duration.curve.facet.infrastructure"))); | 130 facets.add(FloodDurationCurveProcessor.createInfrastructureFacet(context, hash, this.id, result, 0, resultIndex, |
131 Resources.getMsg(context.getMeta(), "sinfo_facet_flood_duration_curve.infra.w.left.description"), AttributeKey.LEFT, true)); | |
132 facets.add(FloodDurationCurveProcessor.createInfrastructureFacet(context, hash, this.id, result, 0, resultIndex, | |
133 Resources.getMsg(context.getMeta(), "sinfo_facet_flood_duration_curve.infra.q.left.description"), AttributeKey.LEFT, false)); | |
134 } | |
135 if ((access.getRiverside() == RiversideChoiceKey.RIGHT) || (access.getRiverside() == RiversideChoiceKey.BOTH)) { | |
136 facets.add(FloodDurationCurveProcessor.createInfrastructureFacet(context, hash, this.id, result, 0, resultIndex, | |
137 Resources.getMsg(context.getMeta(), "sinfo_facet_flood_duration_curve.infra.w.right.description"), AttributeKey.RIGHT, true)); | |
138 facets.add(FloodDurationCurveProcessor.createInfrastructureFacet(context, hash, this.id, result, 0, resultIndex, | |
139 Resources.getMsg(context.getMeta(), "sinfo_facet_flood_duration_curve.infra.q.right.description"), AttributeKey.RIGHT, false)); | |
140 } | |
130 | 141 |
131 facets.add(new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id)); | 142 facets.add(new DataFacet(FacetTypes.CSV, "CSV data", ComputeType.ADVANCE, hash, this.id)); |
132 facets.add(new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id)); | 143 facets.add(new DataFacet(FacetTypes.PDF, "PDF data", ComputeType.ADVANCE, hash, this.id)); |
133 | 144 |
134 resultIndex++; | 145 resultIndex++; |