Mercurial > dive4elements > river
changeset 6303:5fda7065b74a
Add another constructor that takes a WQ object as parameter
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 12 Jun 2013 16:02:33 +0200 |
parents | d5af7b17efc2 |
children | 152e1ba8e5bd |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQKms.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);