comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQ.java @ 7648:b0e2e4e0e2d2

issue1020: Add WQ constructor that accepts TDoubleArrayList .
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 05 Dec 2013 16:58:26 +0100
parents fe32a7f9655e
children d3a4b0d5bcd8
comparison
equal deleted inserted replaced
7647:786ff139de5e 7648:b0e2e4e0e2d2
54 54
55 public WQ(double [] qs, double [] ws, String name) { 55 public WQ(double [] qs, double [] ws, String name) {
56 super(name); 56 super(name);
57 this.ws = new TDoubleArrayList(ws); 57 this.ws = new TDoubleArrayList(ws);
58 this.qs = new TDoubleArrayList(qs); 58 this.qs = new TDoubleArrayList(qs);
59 }
60
61 public WQ(TDoubleArrayList qs, TDoubleArrayList ws, String name) {
62 super(name);
63 this.ws = ws;
64 this.qs = qs;
59 } 65 }
60 66
61 67
62 public Double getRawValue() { 68 public Double getRawValue() {
63 if (name == null || name.length() == 0) { 69 if (name == null || name.length() == 0) {

http://dive4elements.wald.intevation.org