comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/QWI.java @ 9415:9744ce3c3853

Rework of fixanalysis computation and dWt and WQ facets. Got rid of strange remapping and bitshifting code by explicitely saving the column information and using it in the facets. The facets also put the valid station range into their xml-metadata
author gernotbelger
date Thu, 16 Aug 2018 16:27:53 +0200
parents af13ceeba52a
children
comparison
equal deleted inserted replaced
9414:096f151a0a9f 9415:9744ce3c3853
6 * documentation coming with Dive4Elements River for details. 6 * documentation coming with Dive4Elements River for details.
7 */ 7 */
8 8
9 package org.dive4elements.river.artifacts.model.fixings; 9 package org.dive4elements.river.artifacts.model.fixings;
10 10
11 import org.dive4elements.river.artifacts.model.QW; 11 import java.io.Serializable;
12
13 import java.util.Date; 12 import java.util.Date;
14 13
15 public class QWI 14 public class QWI implements Serializable {
16 extends QW 15
17 { 16 private static final long serialVersionUID = 1L;
18 protected String description; 17
19 protected Date date; 18 private Date date;
20 protected boolean interpolated; 19
21 protected int index; 20 private double q;
21
22 private double w;
23
24 private boolean interpolated;
22 25
23 public QWI() { 26 public QWI() {
24 } 27 }
25 28
26 public QWI(double q, double w) { 29 public QWI(final double q, final double w) {
27 super(q, w); 30 this.q = q;
31 this.w = w;
28 } 32 }
29 33
30 public QWI( 34 public QWI(final double q, final double w, final Date date, final boolean interpolated) {
31 double q, 35 this.q = q;
32 double w, 36 this.w = w;
33 String description, 37 this.date = date;
34 Date date,
35 boolean interpolated,
36 int index
37 ) {
38 super(q, w);
39 this.description = description;
40 this.date = date;
41 this.interpolated = interpolated; 38 this.interpolated = interpolated;
42 this.index = index;
43 } 39 }
44 40
45 public Date getDate() { 41 public Date getDate() {
46 return date; 42 return this.date;
47 } 43 }
48 44
49 public void setDate(Date date) { 45 public double getQ() {
50 this.date = date; 46 return this.q;
51 } 47 }
52 48
53 public String getDescription() { 49 public double getW() {
54 return description; 50 return this.w;
55 }
56
57 public void setDescription(String description) {
58 this.description = description;
59 } 51 }
60 52
61 public boolean getInterpolated() { 53 public boolean getInterpolated() {
62 return interpolated; 54 return this.interpolated;
63 }
64
65 public void setInterpolated(boolean interpolated) {
66 this.interpolated = interpolated;
67 }
68
69 public int getIndex() {
70 return index;
71 }
72
73 public void setIndex(int index) {
74 this.index = index;
75 } 55 }
76 } 56 }
77 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org