Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WKmsImpl.java @ 1720:fa932d618989
Added constructor that will be needed in creation of WKms for 'static' data.
flys-artifacts/trunk@3001 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 18 Oct 2011 12:27:49 +0000 |
parents | 03fbf1b30e72 |
children | 65ff8ff20be4 |
comparison
equal
deleted
inserted
replaced
1719:62983d0ced51 | 1720:fa932d618989 |
---|---|
9 protected TDoubleArrayList kms; | 9 protected TDoubleArrayList kms; |
10 protected TDoubleArrayList ws; | 10 protected TDoubleArrayList ws; |
11 | 11 |
12 public WKmsImpl() { | 12 public WKmsImpl() { |
13 super(""); | 13 super(""); |
14 kms = new TDoubleArrayList(); | |
15 ws = new TDoubleArrayList(); | |
16 } | |
17 | |
18 | |
19 /** | |
20 * Create named, empty WKms. | |
21 */ | |
22 public WKmsImpl(String name) { | |
23 super(name); | |
14 kms = new TDoubleArrayList(); | 24 kms = new TDoubleArrayList(); |
15 ws = new TDoubleArrayList(); | 25 ws = new TDoubleArrayList(); |
16 } | 26 } |
17 | 27 |
18 | 28 |
37 this.kms = kms; | 47 this.kms = kms; |
38 this.ws = ws; | 48 this.ws = ws; |
39 } | 49 } |
40 | 50 |
41 | 51 |
52 /** | |
53 * Add a W (in NN+m) for a km (in km). | |
54 */ | |
42 public void add(double km, double w) { | 55 public void add(double km, double w) { |
43 kms.add(km); | 56 kms.add(km); |
44 ws .add(w); | 57 ws .add(w); |
45 } | 58 } |
46 | 59 |