Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java @ 4265:d5d68c5bf085
Add id, kmup and operator to MeasurementStation model
Also add getters for these variables
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 26 Oct 2012 12:13:38 +0200 |
parents | fc742c039f30 |
children | 82c1e911dd71 |
comparison
equal
deleted
inserted
replaced
4264:31c017420502 | 4265:d5d68c5bf085 |
---|---|
3 /** | 3 /** |
4 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> | 4 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> |
5 */ | 5 */ |
6 public class DefaultMeasurementStation implements MeasurementStation { | 6 public class DefaultMeasurementStation implements MeasurementStation { |
7 | 7 |
8 private String name; | 8 private String name; |
9 private Double start; | 9 private Double start; |
10 private Double end; | 10 private Double end; |
11 private Double station; | 11 private Double station; |
12 private String rivername; | 12 private String rivername; |
13 private String measurementtype; | 13 private String measurementtype; |
14 private String riverside; | 14 private String riverside; |
15 private Integer id; | |
16 private boolean kmup; | |
17 private String moperator; | |
15 | 18 |
16 public DefaultMeasurementStation() { | 19 public DefaultMeasurementStation() { |
17 } | 20 } |
18 | 21 |
19 public DefaultMeasurementStation( | 22 public DefaultMeasurementStation( |
20 String rivername, | 23 String rivername, |
21 String name, | 24 String name, |
22 Double station, | 25 Integer id, |
23 Double start, | 26 Double station, |
24 Double end, | 27 Double start, |
25 String riverside, | 28 Double end, |
26 String measurementtype) | 29 boolean kmup, |
30 String riverside, | |
31 String measurementtype, | |
32 String moperator) | |
27 { | 33 { |
28 this.rivername = rivername; | 34 this.rivername = rivername; |
29 this.name = name; | 35 this.name = name; |
30 this.station = station; | 36 this.station = station; |
31 this.start = start; | 37 this.start = start; |
32 this.end = end; | 38 this.end = end; |
33 this.riverside = riverside; | 39 this.riverside = riverside; |
34 this.measurementtype = measurementtype; | 40 this.measurementtype = measurementtype; |
41 this.id = id; | |
42 this.kmup = kmup; | |
43 this.moperator = moperator; | |
35 } | 44 } |
36 | 45 |
37 /** | 46 /** |
38 * Returns the name of the measurement station | 47 * Returns the name of the measurement station |
39 */ | 48 */ |
88 */ | 97 */ |
89 @Override | 98 @Override |
90 public String getRiverSide() { | 99 public String getRiverSide() { |
91 return this.riverside; | 100 return this.riverside; |
92 } | 101 } |
102 | |
103 /** | |
104 * Returns the ID of the measurement station | |
105 */ | |
106 @Override | |
107 public Integer getID() { | |
108 return this.id; | |
109 } | |
110 | |
111 @Override | |
112 public boolean isKmUp() { | |
113 return this.kmup; | |
114 } | |
115 | |
116 /** | |
117 * Returns the operator of the measurement station | |
118 */ | |
119 @Override | |
120 public String getOperator() { | |
121 return this.moperator; | |
122 } | |
93 } | 123 } |