-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSurfaceWaterTSDay.java
More file actions
252 lines (198 loc) · 4.79 KB
/
SurfaceWaterTSDay.java
File metadata and controls
252 lines (198 loc) · 4.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
// SurfaceWaterTSDay - data object for daily surface water time series records
/* NoticeStart
CDSS HydroBase REST Web Services Java Library
CDSS HydroBase REST Web Services Java Library is a part of Colorado's Decision Support Systems (CDSS)
Copyright (C) 2018-2022 Colorado Department of Natural Resources
CDSS HydroBase REST Web Services Java Library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
CDSS HydroBase REST Web Services Java Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with CDSS HydroBase REST Web Services Java Library. If not, see <https://www.gnu.org/licenses/>.
NoticeEnd */
package cdss.dmi.hydrobase.rest.dao;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import RTi.Util.Time.DateTime;
/**
* This class stores data for surface water station daily time series data, for example:
* <pre>
* {
"stationNum": 476,
"abbrev": "PLAKERCO",
"usgsSiteId": "06754000",
"measType": "Streamflow",
"measDate": "1901-05-01",
"value": 1540.000000,
"flagA": "A",
"flagB": null,
"flagC": null,
"flagD": null,
"dataSource": "USGS",
"modified": "2015-06-17",
"measUnit": "cfs"
},
* </pre>
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class SurfaceWaterTSDay {
// Data members are defined in alphabetical order.
/**
* Abbreviation, matches real-time station.
*/
private String abbrev;
/**
* Primary source/provider of station data (e.g., "USGS", "DWR").
*/
private String dataSource;
/**
* flagA.
*/
private String flagA;
/**
* flagB.
*/
private String flagB;
/**
* flagC.
*/
private String flagC;
/**
* flagD.
*/
private String flagD;
/**
* Data measurement date.
*/
private DateTime measDate;
/**
* Measurement type.
*/
private String measType;
/**
* Measurement units.
*/
private String measUnit;
/**
* Modification time.
*/
private DateTime modified;
/**
* Station number.
*/
private int stationNum;
/**
* USGS site ID.
*/
private String usgsSiteId;
/**
* Data value.
*/
private Double value;
// Getters for data members.
public String getAbbrev() {
return abbrev;
}
public String getDataSource() {
return dataSource;
}
public String getFlagA() {
return flagA;
}
public String getFlagB() {
return flagB;
}
public String getFlagC() {
return flagC;
}
public String getFlagD() {
return flagD;
}
public DateTime getMeasDate() {
return measDate;
}
public String getMeasType() {
return measType;
}
public String getMeasUnit(){
return measUnit;
}
public DateTime getModified() {
return modified;
}
public int getStationNum() {
return stationNum;
}
public String getUsgsSiteId() {
return usgsSiteId;
}
public double getValue() {
return value;
}
// Setters for data members.
public void setAbbrev(String abbrev) {
this.abbrev = abbrev;
}
public void setDataSource(String dataSource) {
this.dataSource = dataSource;
}
public void setFlagA(String flagA) {
this.flagA = flagA;
}
public void setFlagB(String flagB) {
this.flagB = flagB;
}
public void setFlagC(String flagC) {
this.flagC = flagC;
}
public void setFlagD(String flagD) {
this.flagD = flagD;
}
public void setMeasDate(DateTime measDate) {
this.measDate = measDate;
}
public void setModified(DateTime modified) {
this.modified = modified;
}
public void setMeasType(String measType) {
this.measType = measType;
}
public void setMeasUnit(String measUnit){
this.measUnit = measUnit;
}
public void setStationNum(int stationNum) {
this.stationNum = stationNum;
}
public void setUsgsSiteId(String usgsSiteId) {
this.usgsSiteId = usgsSiteId;
}
public void setValue(Double value) {
this.value = value;
}
/**
* To string method for testing purposes:
* Variables defined in order of how they are returned in a json format from
* web services
*/
@Override
public String toString(){
return "SurfaceWaterTSDay: [ "
+ "abbrev: " + abbrev
+ ", dataSource: " + dataSource
+ ", flagA: " + flagA
+ ", flagB: " + flagB
+ ", flagC: " + flagC
+ ", flagD: " + flagD
+ ", measDate: " + measDate
+ ", measType: " + measType
+ ", measUnit: " + measUnit
+ ", modified: " + modified
+ ", stationNum: " + stationNum
+ ", usgsSiteId: " + usgsSiteId
+ ", value: " + value
+ " ]\n";
}
}