Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/WQSelect.java @ 6326:5c880567a020
Artifacts: Moved code from WINFO artifact into state where it belongs.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 13 Jun 2013 12:48:12 +0200 |
parents | af13ceeba52a |
children | e4606eae8ea5 |
comparison
equal
deleted
inserted
replaced
6325:ee701de9c875 | 6326:5c880567a020 |
---|---|
32 import org.dive4elements.river.artifacts.D4EArtifact; | 32 import org.dive4elements.river.artifacts.D4EArtifact; |
33 import org.dive4elements.river.artifacts.WINFOArtifact; | 33 import org.dive4elements.river.artifacts.WINFOArtifact; |
34 | 34 |
35 import org.dive4elements.river.artifacts.model.WstFactory; | 35 import org.dive4elements.river.artifacts.model.WstFactory; |
36 import org.dive4elements.river.artifacts.model.WstValueTable; | 36 import org.dive4elements.river.artifacts.model.WstValueTable; |
37 import org.dive4elements.river.artifacts.model.WstValueTableFactory; | |
37 import org.dive4elements.river.artifacts.resources.Resources; | 38 import org.dive4elements.river.artifacts.resources.Resources; |
38 | 39 |
39 import org.dive4elements.river.utils.RiverUtils; | 40 import org.dive4elements.river.utils.RiverUtils; |
40 | 41 |
41 | 42 |
421 */ | 422 */ |
422 protected double[] determineMinMaxWFree(Artifact artifact) { | 423 protected double[] determineMinMaxWFree(Artifact artifact) { |
423 logger.debug("WQSelect.determineMinMaxWFree"); | 424 logger.debug("WQSelect.determineMinMaxWFree"); |
424 | 425 |
425 WINFOArtifact winfo = (WINFOArtifact) artifact; | 426 WINFOArtifact winfo = (WINFOArtifact) artifact; |
426 WstValueTable valueTable = winfo.getWstValueTable(); | 427 WstValueTable valueTable = WstValueTableFactory.getTable( |
428 RiverUtils.getRiver(winfo)); | |
427 | 429 |
428 double[] minmaxW = null; | 430 double[] minmaxW = null; |
429 if(valueTable != null) { | 431 if(valueTable != null) { |
430 double[] km = null; | 432 double[] km = null; |
431 if(winfo.isRange()) { | 433 if(winfo.isRange()) { |
483 */ | 485 */ |
484 protected double[] determineMinMaxQ(Artifact artifact) { | 486 protected double[] determineMinMaxQ(Artifact artifact) { |
485 logger.debug("WQSelect.determineMinMaxQ"); | 487 logger.debug("WQSelect.determineMinMaxQ"); |
486 | 488 |
487 WINFOArtifact winfo = (WINFOArtifact) artifact; | 489 WINFOArtifact winfo = (WINFOArtifact) artifact; |
488 WstValueTable valueTable = winfo.getWstValueTable(); | 490 WstValueTable valueTable = WstValueTableFactory.getTable( |
491 RiverUtils.getRiver(winfo)); | |
489 | 492 |
490 double[] minmaxQ = null; | 493 double[] minmaxQ = null; |
491 if(valueTable != null) { | 494 if(valueTable != null) { |
492 double[] km = null; | 495 double[] km = null; |
493 if(winfo.isRange()) { | 496 if(winfo.isRange()) { |