Mercurial > dive4elements > river
annotate artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flood_duration/FloodDurationAccess.java @ 9176:1614cb14308f
Work on calculations for S-Info flood duration workflow
author | mschaefer |
---|---|
date | Mon, 25 Jun 2018 19:21:11 +0200 |
parents | e6b63b2b41b9 |
children | 0dcd1cd41915 |
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; | |
17 | |
18 /** | |
9176
1614cb14308f
Work on calculations for S-Info flood duration workflow
mschaefer
parents:
9145
diff
changeset
|
19 * Access to the flood duration calculation type specific SInfo artifact data. |
9067 | 20 * REMARK: this class is NOT intended to be hold in the results (or anywhere else), in order to avoid a permanent |
21 * reference to the artifact instance. | |
22 * Hence we do NOT cache any data. | |
23 * | |
24 * @author Gernot Belger | |
25 */ | |
26 final class FloodDurationAccess extends RangeAccess { | |
27 | |
28 private static Logger log = Logger.getLogger(FloodDurationAccess.class); | |
29 | |
30 public FloodDurationAccess(final SINFOArtifact artifact) { | |
31 super(artifact); | |
32 | |
33 /* assert calculation mode */ | |
34 final SinfoCalcMode calculationMode = artifact.getCalculationMode(); | |
35 assert (calculationMode == SinfoCalcMode.sinfo_calc_flood_duration); | |
36 } | |
37 | |
38 @Override | |
39 public Double getStep() { | |
40 return super.getStep(); | |
41 } | |
42 | |
43 public String getRiverside() { | |
44 return super.getString("riverside"); | |
45 } | |
46 } |