Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/MainValuesArtifact.java @ 7507:a9eb777463e1
cosmetics, doc.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 01 Nov 2013 16:40:16 +0100 |
parents | 661b45d13b17 |
children | 8d5ca5175038 |
comparison
equal
deleted
inserted
replaced
7506:e79e231c864d | 7507:a9eb777463e1 |
---|---|
182 fs.add(wfacet2); | 182 fs.add(wfacet2); |
183 fs.add(wfacet3); | 183 fs.add(wfacet3); |
184 } | 184 } |
185 } | 185 } |
186 | 186 |
187 | |
187 /** | 188 /** |
188 * The MainValueArtifact can be set up with a document giving the | 189 * The MainValueArtifact can be set up with a document giving the |
189 * river and gauge. This happens in context of GaugeDischargeArtifact. | 190 * river and gauge. This happens in context of GaugeDischargeArtifact. |
190 * In that case, initalize() is not called. | 191 * In that case, initalize() is not called. |
191 */ | 192 */ |
219 } | 220 } |
220 } | 221 } |
221 | 222 |
222 | 223 |
223 /** | 224 /** |
224 * Create "the" state. | 225 * Create "the" (one possible) state. |
225 */ | 226 */ |
226 protected State spawnState() { | 227 protected State spawnState() { |
227 state = new StaticState(STATIC_STATE_NAME); | 228 state = new StaticState(STATIC_STATE_NAME); |
228 List<Facet> fs = (List<Facet>) getFacets(STATIC_STATE_NAME); | 229 List<Facet> fs = (List<Facet>) getFacets(STATIC_STATE_NAME); |
229 | 230 |
375 /** | 376 /** |
376 * Get a list of "Q" main values. | 377 * Get a list of "Q" main values. |
377 * @return list of Q main values. | 378 * @return list of Q main values. |
378 */ | 379 */ |
379 public List<NamedDouble> getMainValuesQ(double[] kms) { | 380 public List<NamedDouble> getMainValuesQ(double[] kms) { |
381 logger.debug("MainValuesArtifact.getMainValuesQ(d)"); | |
380 List<NamedDouble> filteredList = new ArrayList<NamedDouble>(); | 382 List<NamedDouble> filteredList = new ArrayList<NamedDouble>(); |
381 boolean atGauge = false; | 383 boolean atGauge = false; |
382 Gauge gauge = getGauge(kms[0]); | 384 Gauge gauge = getGauge(kms[0]); |
383 WstValueTable interpolator = WstValueTableFactory.getTable(RiverUtils.getRiver(this)); | 385 WstValueTable interpolator = WstValueTableFactory.getTable(RiverUtils.getRiver(this)); |
384 Calculation c = new Calculation(); | 386 Calculation c = new Calculation(); |
407 return filteredList; | 409 return filteredList; |
408 } | 410 } |
409 | 411 |
410 /** | 412 /** |
411 * Get a list of "Q" main values. | 413 * Get a list of "Q" main values. |
414 * @param atGauge whether is at gauge or needs interpolation. | |
412 * @return list of Q main values. | 415 * @return list of Q main values. |
413 */ | 416 */ |
414 public List<NamedDouble> getMainValuesQ(boolean atGauge) { | 417 public List<NamedDouble> getMainValuesQ(boolean atGauge) { |
418 logger.debug("MainValuesArtifact.getMainValuesQ(b)"); | |
415 List<NamedDouble> filteredList = new ArrayList<NamedDouble>(); | 419 List<NamedDouble> filteredList = new ArrayList<NamedDouble>(); |
416 Gauge gauge = getGauge(); | 420 Gauge gauge = getGauge(); |
417 WstValueTable interpolator = WstValueTableFactory.getTable(RiverUtils.getRiver(this)); | 421 WstValueTable interpolator = WstValueTableFactory.getTable(RiverUtils.getRiver(this)); |
418 Calculation c = new Calculation(); | 422 Calculation c = new Calculation(); |
419 double w_out[] = {0.0f}; | 423 double w_out[] = {0.0f}; |