Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQ.java @ 7930:d3a4b0d5bcd8
Small Java related cosmetics.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 12 Jun 2014 19:16:30 +0200 |
parents | b0e2e4e0e2d2 |
children | 839032ac1523 |
comparison
equal
deleted
inserted
replaced
7929:86f5a1577cc6 | 7930:d3a4b0d5bcd8 |
---|---|
119 | 119 |
120 /** Returns either a modified copy or the same Object with fixed W values. | 120 /** Returns either a modified copy or the same Object with fixed W values. |
121 * If a conversion takes place converted is set to true | 121 * If a conversion takes place converted is set to true |
122 */ | 122 */ |
123 public static WQ getFixedWQforExportAtGauge(WQ wq, BigDecimal datum) { | 123 public static WQ getFixedWQforExportAtGauge(WQ wq, BigDecimal datum) { |
124 if (wq.getReferenceSystem() == wq.CENTIMETER_AT_GAUGE) { | 124 if (wq.getReferenceSystem() == W.CENTIMETER_AT_GAUGE) { |
125 // Do nothing | 125 // Do nothing |
126 return wq; | 126 return wq; |
127 } | 127 } |
128 // If we convert we work on a copy to avoid side effects. | 128 // If we convert we work on a copy to avoid side effects. |
129 WQ ret = new WQ(wq.size(), wq.getName()); | 129 WQ ret = new WQ(wq.size(), wq.getName()); |
130 ret.setReferenceSystem(wq.CENTIMETER_AT_GAUGE); | 130 ret.setReferenceSystem(W.CENTIMETER_AT_GAUGE); |
131 | 131 |
132 // When we convert and have a datum we have a calculated | 132 // When we convert and have a datum we have a calculated |
133 // result at a gauge so we must subtract the datum. | 133 // result at a gauge so we must subtract the datum. |
134 double subtractDatum = datum == null ? 0 : datum.doubleValue(); | 134 double subtractDatum = datum == null ? 0 : datum.doubleValue(); |
135 double [] data = new double[8]; | 135 double [] data = new double[8]; |