Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/W.java @ 8362:839032ac1523
Purge obsolete representation of reference system for discharge tables.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 01 Oct 2014 15:54:47 +0200 |
parents | d24d95b0e1f9 |
children | 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/W.java Wed Oct 01 15:42:55 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/W.java Wed Oct 01 15:54:47 2014 +0200 @@ -22,12 +22,6 @@ protected TDoubleArrayList ws; - public static final int METER_OVER_REFPOINT = 0; - - public static final int CENTIMETER_AT_GAUGE = 1; - - protected int referenceSystem; - public W() { ws = new TDoubleArrayList(); } @@ -42,39 +36,10 @@ } public W(int capacity, String name) { - this(capacity, "", METER_OVER_REFPOINT); - } - - public W(int capacity, String name, int referenceSystem) { super(name); - this.referenceSystem = referenceSystem; ws = new TDoubleArrayList(capacity); } - /** Sets the used reference system for W. - * If the W's refer to values in meters over a reference - * point (e.g. NN+m) they are in meter. If they are - * relative to the PNP of a gauge they are in centimeter. */ - public void setReferenceSystem(int val) { - referenceSystem = val; - } - - /** Return the used reference system for W. - * If the W's refer to values in meters over a reference - * point (e.g. NN+m) they are in meter. If they are - * relative to the PNP of a gauge they are in centimeter. */ - public int getReferenceSystem() { - return referenceSystem; - } - - /** Convenience function to get the correct unit for W values. */ - public String getWUnit() { - if (getReferenceSystem() == CENTIMETER_AT_GAUGE) { - return "cm"; - } - return "m"; - } - public void add(double value) { ws.add(value); }