comparison flys-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultMeasurementStation.java @ 5834:f507086aa94b

Repaired internal references.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 12:31:32 +0200
parents flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultMeasurementStation.java@7320830987a3
children 821a02bbfb4e
comparison
equal deleted inserted replaced
5833:a2bdc0f524e8 5834:f507086aa94b
1 package de.intevation.flys.client.shared.model;
2
3 import java.util.Date;
4
5 /**
6 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a>
7 */
8 public class DefaultMeasurementStation implements MeasurementStation {
9
10 private String name;
11 private Double start;
12 private Double end;
13 private Double station;
14 private String rivername;
15 private String measurementtype;
16 private String riverside;
17 private Integer id;
18 private boolean kmup;
19 private String moperator;
20 private Date starttime;
21 private Date stoptime;
22 private String gaugename;
23
24 public DefaultMeasurementStation() {
25 }
26
27 public DefaultMeasurementStation(
28 String rivername,
29 String name,
30 Integer id,
31 Double station,
32 Double start,
33 Double end,
34 boolean kmup,
35 String riverside,
36 String measurementtype,
37 String moperator,
38 Date starttime,
39 Date stoptime,
40 String gaugename)
41 {
42 this.rivername = rivername;
43 this.name = name;
44 this.station = station;
45 this.start = start;
46 this.end = end;
47 this.riverside = riverside;
48 this.measurementtype = measurementtype;
49 this.id = id;
50 this.kmup = kmup;
51 this.moperator = moperator;
52 this.starttime = starttime;
53 this.stoptime = stoptime;
54 this.gaugename = gaugename;
55 }
56
57 /**
58 * Returns the name of the measurement station
59 */
60 @Override
61 public String getName() {
62 return this.name;
63 }
64
65 /**
66 * Returns the start KM of the measurement station or null if not available
67 */
68 @Override
69 public Double getKmStart() {
70 return this.start;
71 }
72
73 /**
74 * Returns the end KM of the measurement station or null if not available
75 */
76 @Override
77 public Double getKmEnd() {
78 return this.end;
79 }
80
81 /**
82 * Returns the river to which this measurement station belongs
83 */
84 @Override
85 public String getRiverName() {
86 return this.rivername;
87 }
88
89 /**
90 * Returns the type of the measurement station
91 */
92 @Override
93 public String getMeasurementType() {
94 return this.measurementtype;
95 }
96
97 /**
98 * Returns the station km of this measurement station
99 */
100 @Override
101 public Double getStation() {
102 return this.station;
103 }
104
105
106 /**
107 * Returns the side of the river where this measurement station belongs
108 */
109 @Override
110 public String getRiverSide() {
111 return this.riverside;
112 }
113
114 /**
115 * Returns the ID of the measurement station
116 */
117 @Override
118 public Integer getID() {
119 return this.id;
120 }
121
122 @Override
123 public boolean isKmUp() {
124 return this.kmup;
125 }
126
127 /**
128 * Returns the operator of the measurement station
129 */
130 @Override
131 public String getOperator() {
132 return this.moperator;
133 }
134
135 /**
136 * Returns the start time of the observation at this measurement station
137 */
138 @Override
139 public Date getStartTime() {
140 return this.starttime;
141 }
142
143 /**
144 * Returns the end time of the observation at this measurement station
145 */
146 @Override
147 public Date getStopTime() {
148 return this.stoptime;
149 }
150
151 /**
152 * Returns the name of the gauge in reference to this measurement station
153 */
154 @Override
155 public String getGaugeName() {
156 return this.gaugename;
157 }
158
159 }

http://dive4elements.wald.intevation.org