Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationAccess.java @ 9229:0dcd1cd41915
Different themes/facets for left bank and right bank infrastructures in S-Info flood durations, some fixmes done
author | mschaefer |
---|---|
date | Thu, 05 Jul 2018 16:49:42 +0200 |
parents | 1614cb14308f |
children | 929d645691ae |
rev | line source |
---|---|
9067 | 1 /* Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
2 * Software engineering by | |
3 * Björnsen Beratende Ingenieure GmbH | |
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt | |
5 * | |
6 * This file is Free Software under the GNU AGPL (>=v3) | |
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
8 * documentation coming with Dive4Elements River for details. | |
9 */ | |
10 | |
11 package org.dive4elements.river.artifacts.sinfo.flood_duration; | |
12 | |
13 import org.apache.log4j.Logger; | |
14 import org.dive4elements.river.artifacts.access.RangeAccess; | |
15 import org.dive4elements.river.artifacts.sinfo.SINFOArtifact; | |
16 import org.dive4elements.river.artifacts.sinfo.SinfoCalcMode; | |
9229
0dcd1cd41915
Different themes/facets for left bank and right bank infrastructures in S-Info flood durations, some fixmes done
mschaefer
parents:
9176
diff
changeset
|
17 import org.dive4elements.river.artifacts.sinfo.flood_duration.RiversideRadioChoice.RiversideChoiceKey; |
9067 | 18 |
19 /** | |
9176
1614cb14308f
Work on calculations for S-Info flood duration workflow
mschaefer
parents:
9145
diff
changeset
|
20 * Access to the flood duration calculation type specific SInfo artifact data. |
9067 | 21 * REMARK: this class is NOT intended to be hold in the results (or anywhere else), in order to avoid a permanent |
22 * reference to the artifact instance. | |
23 * Hence we do NOT cache any data. | |
24 * | |
25 * @author Gernot Belger | |
26 */ | |
27 final class FloodDurationAccess extends RangeAccess { | |
28 | |
29 private static Logger log = Logger.getLogger(FloodDurationAccess.class); | |
30 | |
31 public FloodDurationAccess(final SINFOArtifact artifact) { | |
32 super(artifact); | |
33 | |
34 /* assert calculation mode */ | |
35 final SinfoCalcMode calculationMode = artifact.getCalculationMode(); | |
36 assert (calculationMode == SinfoCalcMode.sinfo_calc_flood_duration); | |
37 } | |
38 | |
39 @Override | |
40 public Double getStep() { | |
41 return super.getStep(); | |
42 } | |
43 | |
9229
0dcd1cd41915
Different themes/facets for left bank and right bank infrastructures in S-Info flood durations, some fixmes done
mschaefer
parents:
9176
diff
changeset
|
44 public RiversideChoiceKey getRiverside() { |
0dcd1cd41915
Different themes/facets for left bank and right bank infrastructures in S-Info flood durations, some fixmes done
mschaefer
parents:
9176
diff
changeset
|
45 return RiversideChoiceKey.fromKey(super.getString("riverside")); |
9067 | 46 } |
47 } |