comparison 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
comparison
equal deleted inserted replaced
366:d64339f9f38f 367:0960df8358ec
43 this.kms.add(kms); 43 this.kms.add(kms);
44 } 44 }
45 45
46 46
47 /** 47 /**
48 * This method returns a triple of W, Q and Kms in a single 3dim array. 48 * Returns the number of triples stored in this data pool.
49 * 49 *
50 * @param idx The position of the triple. 50 * @return the number of triples stored in this data pool.
51 *
52 * @return a triple of [W, Q, Kms].
53 */ 51 */
54 public double[] get(int idx) { 52 public int size() {
55 return get(idx, new double[3]); 53 return kms.size();
56 } 54 }
57 55
58 /** 56 /**
59 * This method returns a triple of W, Q and Kms in a single 3dim array. 57 * This method returns a triple of W, Q and Kms in a single 3dim array.
60 * 58 *
67 dst[0] = w .get(idx); 65 dst[0] = w .get(idx);
68 dst[1] = q .get(idx); 66 dst[1] = q .get(idx);
69 dst[2] = kms.get(idx); 67 dst[2] = kms.get(idx);
70 return dst; 68 return dst;
71 } 69 }
70
71
72 public double getKms(int idx) {
73 return kms.get(idx);
74 }
72 } 75 }
73 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 76 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org