Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/GaugeDischargeState.java @ 3053:bb576facbe50
Use cache.
flys-artifacts/trunk@4627 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 07 Jun 2012 20:53:49 +0000 |
parents | 49727e9dcfde |
children | 94d78e0dc5e9 |
comparison
equal
deleted
inserted
replaced
3052:acd89b7970dd | 3053:bb576facbe50 |
---|---|
85 CallMeta meta, | 85 CallMeta meta, |
86 List<Facet> facets | 86 List<Facet> facets |
87 ) { | 87 ) { |
88 logger.debug("GaugeDischargeState.computeInit()"); | 88 logger.debug("GaugeDischargeState.computeInit()"); |
89 | 89 |
90 // TODO caching, / CalculationResultUsage | |
91 | |
92 GaugeDischargeFacet facet = new GaugeDischargeFacet( | 90 GaugeDischargeFacet facet = new GaugeDischargeFacet( |
93 0, | 91 0, |
94 DISCHARGE_CURVE, | 92 DISCHARGE_CURVE, |
95 createFacetName((GaugeDischargeArtifact) artifact, meta)); | 93 createFacetName((GaugeDischargeArtifact) artifact, meta)); |
96 | 94 |
115 logger.debug("GaugeDischargeState.computeAdvance()"); | 113 logger.debug("GaugeDischargeState.computeAdvance()"); |
116 GaugeDischargeArtifact dischargeArtifact = (GaugeDischargeArtifact) artifact; | 114 GaugeDischargeArtifact dischargeArtifact = (GaugeDischargeArtifact) artifact; |
117 | 115 |
118 CalculationResult res; | 116 CalculationResult res; |
119 | 117 |
120 /*if (old instanceof CalculationResult) { | 118 |
119 if (old instanceof CalculationResult) { | |
121 res = (CalculationResult) old; | 120 res = (CalculationResult) old; |
122 } | 121 } |
123 else {*/ | 122 else { |
124 res = dischargeArtifact.getDischargeCurveData(); | 123 res = dischargeArtifact.getDischargeCurveData(); |
125 //} | 124 } |
126 | 125 |
127 WQKms[] wqkms = (WQKms[]) res.getData(); | 126 WQKms[] wqkms = (WQKms[]) res.getData(); |
128 | 127 |
129 if (wqkms != null && facets != null) { | 128 if (wqkms != null && facets != null) { |
130 logger.debug("GaugeDischargeState.computeAdvance(): create facets"); | 129 logger.debug("GaugeDischargeState.computeAdvance(): create facets"); |