[Dive4elements-commits] [PATCH 03 of 12] Add another constructor that takes a WQ object as parameter

Wald Commits scm-commit at wald.intevation.org
Wed Jun 12 17:47:16 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1371045753 -7200
# Node ID 5fda7065b74a9228a7020e7a3fb66c565f803db1
# Parent  d5af7b17efc255f6349c3055659c57747ae7ba3d
Add another constructor that takes a WQ object as parameter

diff -r d5af7b17efc2 -r 5fda7065b74a artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQKms.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQKms.java	Wed Jun 12 16:01:46 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQKms.java	Wed Jun 12 16:02:33 2013 +0200
@@ -61,6 +61,10 @@
         this(kms, qs, ws, name, 0);
     }
 
+    public WQKms(double []kms, WQ wq) {
+        this(kms, wq.getQs(), wq.getWs(), wq.getName(), wq.getReferenceSystem());
+    }
+
     public WQKms(double [] kms, double [] qs, double [] ws, String name, int wReferenceSystem) {
         super(qs, ws, name);
         this.kms = new TDoubleArrayList(kms);


More information about the Dive4elements-commits mailing list