Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultMeasurementStation.java @ 8412:17db08570637
SCHEMA CHANGE: removed superfluous columns station and river_id from measurement_stations and adapted other components accordingly.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 15 Oct 2014 19:20:26 +0200 |
parents | ea9eef426962 |
children | 71144e25a6c9 |
comparison
equal
deleted
inserted
replaced
8411:b8c6cb36607e | 8412:17db08570637 |
---|---|
16 public class DefaultMeasurementStation implements MeasurementStation { | 16 public class DefaultMeasurementStation implements MeasurementStation { |
17 | 17 |
18 private String name; | 18 private String name; |
19 private Double start; | 19 private Double start; |
20 private Double end; | 20 private Double end; |
21 private Double station; | |
22 private String rivername; | 21 private String rivername; |
23 private String measurementtype; | 22 private String measurementtype; |
24 private String riverside; | 23 private String riverside; |
25 private Integer id; | 24 private Integer id; |
26 private boolean kmup; | |
27 private String moperator; | 25 private String moperator; |
28 private Date starttime; | 26 private Date starttime; |
29 private Date stoptime; | 27 private Date stoptime; |
30 private String gaugename; | 28 private String gaugename; |
31 | 29 |
34 | 32 |
35 public DefaultMeasurementStation( | 33 public DefaultMeasurementStation( |
36 String rivername, | 34 String rivername, |
37 String name, | 35 String name, |
38 Integer id, | 36 Integer id, |
39 Double station, | |
40 Double start, | 37 Double start, |
41 Double end, | 38 Double end, |
42 boolean kmup, | |
43 String riverside, | 39 String riverside, |
44 String measurementtype, | 40 String measurementtype, |
45 String moperator, | 41 String moperator, |
46 Date starttime, | 42 Date starttime, |
47 Date stoptime, | 43 Date stoptime, |
48 String gaugename) | 44 String gaugename) |
49 { | 45 { |
50 this.rivername = rivername; | 46 this.rivername = rivername; |
51 this.name = name; | 47 this.name = name; |
52 this.station = station; | |
53 this.start = start; | 48 this.start = start; |
54 this.end = end; | 49 this.end = end; |
55 this.riverside = riverside; | 50 this.riverside = riverside; |
56 this.measurementtype = measurementtype; | 51 this.measurementtype = measurementtype; |
57 this.id = id; | 52 this.id = id; |
58 this.kmup = kmup; | |
59 this.moperator = moperator; | 53 this.moperator = moperator; |
60 this.starttime = starttime; | 54 this.starttime = starttime; |
61 this.stoptime = stoptime; | 55 this.stoptime = stoptime; |
62 this.gaugename = gaugename; | 56 this.gaugename = gaugename; |
63 } | 57 } |
101 public String getMeasurementType() { | 95 public String getMeasurementType() { |
102 return this.measurementtype; | 96 return this.measurementtype; |
103 } | 97 } |
104 | 98 |
105 /** | 99 /** |
106 * Returns the station km of this measurement station | |
107 */ | |
108 @Override | |
109 public Double getStation() { | |
110 return this.station; | |
111 } | |
112 | |
113 | |
114 /** | |
115 * Returns the side of the river where this measurement station belongs | 100 * Returns the side of the river where this measurement station belongs |
116 */ | 101 */ |
117 @Override | 102 @Override |
118 public String getRiverSide() { | 103 public String getRiverSide() { |
119 return this.riverside; | 104 return this.riverside; |
123 * Returns the ID of the measurement station | 108 * Returns the ID of the measurement station |
124 */ | 109 */ |
125 @Override | 110 @Override |
126 public Integer getID() { | 111 public Integer getID() { |
127 return this.id; | 112 return this.id; |
128 } | |
129 | |
130 @Override | |
131 public boolean isKmUp() { | |
132 return this.kmup; | |
133 } | 113 } |
134 | 114 |
135 /** | 115 /** |
136 * Returns the operator of the measurement station | 116 * Returns the operator of the measurement station |
137 */ | 117 */ |