Mercurial > dive4elements > river
changeset 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 (2011-04-29) |
parents | d64339f9f38f |
children | 3e66a5705c39 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQKms.java |
diffstat | 2 files changed, 14 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Fri Apr 29 08:39:17 2011 +0000 +++ b/flys-artifacts/ChangeLog Fri Apr 29 10:01:41 2011 +0000 @@ -1,3 +1,8 @@ +2011-04-29 Ingo Weinzierl <ingo@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/model/WQKms.java: Added a + method that returns the number of elements stored in the data pool. + 2011-04-29 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/artifacts/model/WQKms.java:
--- 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 :