comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java @ 4652:cf5ac1097d6a

WINFOArtifact: Tiny optimization, get data only when needed.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 07 Dec 2012 11:26:21 +0100
parents 6d3426aba65d
children 65bfb6faa538
comparison
equal deleted inserted replaced
4651:83a42e6a562d 4652:cf5ac1097d6a
1071 * This method returns the W values. 1071 * This method returns the W values.
1072 * 1072 *
1073 * @return the selected W values or null, if no W values are selected. 1073 * @return the selected W values or null, if no W values are selected.
1074 */ 1074 */
1075 public double[] getWs() { 1075 public double[] getWs() {
1076 StateData dSingle = getData("wq_single");
1077
1078 if (isW()) { 1076 if (isW()) {
1077 StateData dSingle = getData("wq_single");
1079 if (dSingle != null) { 1078 if (dSingle != null) {
1080 return getSingleWQValues(); 1079 return getSingleWQValues();
1081 } 1080 }
1082 else { 1081 else {
1083 return getWQTriple(); 1082 return getWQTriple();

http://dive4elements.wald.intevation.org