Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsColumn.java @ 2619:6ed24efc80de
Loaded columns of fixings from database and store them into the cache.
flys-artifacts/trunk@4204 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 05 Apr 2012 15:29:52 +0000 |
parents | b0597a63fe70 |
children | a441be7f1589 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsColumn.java Thu Apr 05 15:29:25 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsColumn.java Thu Apr 05 15:29:52 2012 +0000 @@ -9,8 +9,6 @@ public class FixingsColumn implements Serializable { - protected int columnId; - protected double [] kms; protected double [] ws; @@ -20,22 +18,18 @@ } public FixingsColumn( - int columnId, - double [] kms, - double [] ws + double [] kms, + double [] ws, + QRangeTree qs ) { - this.columnId = columnId; - this.kms = kms; - this.ws = ws; - } - - public int getColumnId() { - return columnId; + this.kms = kms; + this.ws = ws; + this.qs = qs; } public boolean getW(double km, double [] w) { - if (km < kms[0] || km > kms[kms.length-1]) { + if (kms.length == 0 || km < kms[0] || km > kms[kms.length-1]) { w[0] = Double.NaN; return true; }