Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQKms.java @ 367:0960df8358ec
New method WQKms.size() to retrieve the number of elements in the data pool.
flys-artifacts/trunk@1775 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 29 Apr 2011 10:01:41 +0000 |
parents | d64339f9f38f |
children | 5f55047a17e8 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQKms.java Fri Apr 29 08:39:17 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQKms.java Fri Apr 29 10:01:41 2011 +0000 @@ -45,14 +45,12 @@ /** - * This method returns a triple of W, Q and Kms in a single 3dim array. - * - * @param idx The position of the triple. + * Returns the number of triples stored in this data pool. * - * @return a triple of [W, Q, Kms]. + * @return the number of triples stored in this data pool. */ - public double[] get(int idx) { - return get(idx, new double[3]); + public int size() { + return kms.size(); } /** @@ -69,5 +67,10 @@ dst[2] = kms.get(idx); return dst; } + + + public double getKms(int idx) { + return kms.get(idx); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :