comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java @ 4287:82c1e911dd71

Add start and end time of an observation on a measurement station Add start and end time of an observation on a measurement station to the MeasurementStation classes.
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 29 Oct 2012 09:54:31 +0100
parents d5d68c5bf085
children 7320830987a3
comparison
equal deleted inserted replaced
4286:6ccdcb956c14 4287:82c1e911dd71
1 package de.intevation.flys.client.shared.model; 1 package de.intevation.flys.client.shared.model;
2
3 import java.util.Date;
2 4
3 /** 5 /**
4 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> 6 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a>
5 */ 7 */
6 public class DefaultMeasurementStation implements MeasurementStation { 8 public class DefaultMeasurementStation implements MeasurementStation {
13 private String measurementtype; 15 private String measurementtype;
14 private String riverside; 16 private String riverside;
15 private Integer id; 17 private Integer id;
16 private boolean kmup; 18 private boolean kmup;
17 private String moperator; 19 private String moperator;
20 private Date starttime;
21 private Date stoptime;
18 22
19 public DefaultMeasurementStation() { 23 public DefaultMeasurementStation() {
20 } 24 }
21 25
22 public DefaultMeasurementStation( 26 public DefaultMeasurementStation(
27 Double start, 31 Double start,
28 Double end, 32 Double end,
29 boolean kmup, 33 boolean kmup,
30 String riverside, 34 String riverside,
31 String measurementtype, 35 String measurementtype,
32 String moperator) 36 String moperator,
37 Date starttime,
38 Date stoptime)
33 { 39 {
34 this.rivername = rivername; 40 this.rivername = rivername;
35 this.name = name; 41 this.name = name;
36 this.station = station; 42 this.station = station;
37 this.start = start; 43 this.start = start;
39 this.riverside = riverside; 45 this.riverside = riverside;
40 this.measurementtype = measurementtype; 46 this.measurementtype = measurementtype;
41 this.id = id; 47 this.id = id;
42 this.kmup = kmup; 48 this.kmup = kmup;
43 this.moperator = moperator; 49 this.moperator = moperator;
50 this.starttime = starttime;
51 this.stoptime = stoptime;
44 } 52 }
45 53
46 /** 54 /**
47 * Returns the name of the measurement station 55 * Returns the name of the measurement station
48 */ 56 */
118 */ 126 */
119 @Override 127 @Override
120 public String getOperator() { 128 public String getOperator() {
121 return this.moperator; 129 return this.moperator;
122 } 130 }
131
132 /**
133 * Returns the start time of the observation at this measurement station
134 */
135 @Override
136 public Date getStartTime() {
137 return this.starttime;
138 }
139
140 /**
141 * Returns the end time of the observation at this measurement station
142 */
143 @Override
144 public Date getStopTime() {
145 return this.stoptime;
146 }
147
123 } 148 }

http://dive4elements.wald.intevation.org