changeset 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 62983d0ced51
children eb35570df0e8
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WKmsImpl.java
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Oct 18 10:26:27 2011 +0000
+++ b/flys-artifacts/ChangeLog	Tue Oct 18 12:27:49 2011 +0000
@@ -1,3 +1,8 @@
+2011-10-18	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/model/WKmsImpl.java:
+	  Added constructor that takes name, docs.
+
 2011-10-18	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Fix issue that Annotations do not come with theme/style.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WKmsImpl.java	Tue Oct 18 10:26:27 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WKmsImpl.java	Tue Oct 18 12:27:49 2011 +0000
@@ -16,6 +16,16 @@
     }
 
 
+    /**
+     * Create named, empty WKms.
+     */
+    public WKmsImpl(String name) {
+        super(name);
+        kms = new TDoubleArrayList();
+        ws  = new TDoubleArrayList();
+    }
+
+
     public WKmsImpl(int capacity) {
         super("");
         kms = new TDoubleArrayList(capacity);
@@ -39,6 +49,9 @@
     }
 
 
+    /**
+     * Add a W (in NN+m) for a km (in km).
+     */
     public void add(double km, double w) {
         kms.add(km);
         ws .add(w);

http://dive4elements.wald.intevation.org