Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/GaugeDischargeArtifact.java @ 5865:73da40528cf2
River artifacts: Renamed FLYSUtils to RiverUtils.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 28 Apr 2013 15:09:31 +0200 |
parents | 4897a58c8746 |
children | 59ff03ff48f1 |
comparison
equal
deleted
inserted
replaced
5864:f2e46a668fe6 | 5865:73da40528cf2 |
---|---|
34 import org.dive4elements.river.artifacts.model.DischargeTables; | 34 import org.dive4elements.river.artifacts.model.DischargeTables; |
35 | 35 |
36 import org.dive4elements.river.model.Gauge; | 36 import org.dive4elements.river.model.Gauge; |
37 import org.dive4elements.river.model.River; | 37 import org.dive4elements.river.model.River; |
38 | 38 |
39 import org.dive4elements.river.utils.FLYSUtils; | 39 import org.dive4elements.river.utils.RiverUtils; |
40 | 40 |
41 | 41 |
42 /** | 42 /** |
43 * Artifact to get discharge curves at gauges. | 43 * Artifact to get discharge curves at gauges. |
44 */ | 44 */ |
125 } | 125 } |
126 | 126 |
127 | 127 |
128 /** Get the Gauges which came with datacage data-document. */ | 128 /** Get the Gauges which came with datacage data-document. */ |
129 public Gauge getGauge() { | 129 public Gauge getGauge() { |
130 River river = FLYSUtils.getRiver(this); | 130 River river = RiverUtils.getRiver(this); |
131 return river.determineGaugeByName(getGaugeName()); | 131 return river.determineGaugeByName(getGaugeName()); |
132 } | 132 } |
133 | 133 |
134 | 134 |
135 /** | 135 /** |
136 * Returns the data that is used to create discharge curves. | 136 * Returns the data that is used to create discharge curves. |
137 * @return CalculationResult with WQKms. | 137 * @return CalculationResult with WQKms. |
138 */ | 138 */ |
139 public CalculationResult getDischargeCurveData() { | 139 public CalculationResult getDischargeCurveData() { |
140 | 140 |
141 River river = FLYSUtils.getRiver(this); | 141 River river = RiverUtils.getRiver(this); |
142 if (river == null) { | 142 if (river == null) { |
143 return error(new WQKms[0], "no.river.selected"); | 143 return error(new WQKms[0], "no.river.selected"); |
144 } | 144 } |
145 /* | 145 /* |
146 // This one would allow to automatically pick the right Gauge. | 146 // This one would allow to automatically pick the right Gauge. |
147 double [] distance = FLYSUtils.getKmRange(this); | 147 double [] distance = RiverUtils.getKmRange(this); |
148 logger.debug("getDischargeCurveData: get range"); | 148 logger.debug("getDischargeCurveData: get range"); |
149 | 149 |
150 if (distance == null) { | 150 if (distance == null) { |
151 return error(new WQKms[0], "no.range.found"); | 151 return error(new WQKms[0], "no.range.found"); |
152 } | 152 } |